HHH-17460 - Ongoing JPA 32 work

- hibernate-models 0.7.5
This commit is contained in:
Steve Ebersole 2024-03-25 18:28:35 -05:00
parent e898ed9374
commit fd70879845
2 changed files with 11 additions and 11 deletions

View File

@ -952,16 +952,6 @@ public class BinderHelper {
} }
} }
private static EnumSet<CascadeType> convertToHibernateCascadeType(List<jakarta.persistence.CascadeType> ejbCascades) {
final EnumSet<CascadeType> cascadeTypes = EnumSet.noneOf( CascadeType.class );
if ( ejbCascades != null ) {
for ( jakarta.persistence.CascadeType cascade: ejbCascades ) {
cascadeTypes.add( convertCascadeType( cascade ) );
}
}
return cascadeTypes;
}
public static String getCascadeStrategy( public static String getCascadeStrategy(
List<jakarta.persistence.CascadeType> ejbCascades, List<jakarta.persistence.CascadeType> ejbCascades,
AnnotationUsage<Cascade> hibernateCascadeAnnotation, AnnotationUsage<Cascade> hibernateCascadeAnnotation,
@ -986,6 +976,16 @@ public class BinderHelper {
return renderCascadeTypeList( cascadeTypes ); return renderCascadeTypeList( cascadeTypes );
} }
private static EnumSet<CascadeType> convertToHibernateCascadeType(List<jakarta.persistence.CascadeType> ejbCascades) {
final EnumSet<CascadeType> cascadeTypes = EnumSet.noneOf( CascadeType.class );
if ( ejbCascades != null ) {
for ( jakarta.persistence.CascadeType cascade: ejbCascades ) {
cascadeTypes.add( convertCascadeType( cascade ) );
}
}
return cascadeTypes;
}
private static String renderCascadeTypeList(EnumSet<CascadeType> cascadeTypes) { private static String renderCascadeTypeList(EnumSet<CascadeType> cascadeTypes) {
final StringBuilder cascade = new StringBuilder(); final StringBuilder cascade = new StringBuilder();
for ( CascadeType cascadeType : cascadeTypes) { for ( CascadeType cascadeType : cascadeTypes) {

View File

@ -70,7 +70,7 @@ dependencyResolutionManagement {
def byteBuddyVersion = version "byteBuddy", "1.14.18" def byteBuddyVersion = version "byteBuddy", "1.14.18"
def classmateVersion = version "classmate", "1.5.1" def classmateVersion = version "classmate", "1.5.1"
def geolatteVersion = version "geolatte", "1.9.1" def geolatteVersion = version "geolatte", "1.9.1"
def hibernateModelsVersion = version "hibernateModels", "0.7.4" def hibernateModelsVersion = version "hibernateModels", "0.7.5"
def jandexVersion = version "jandex", "3.2.0" def jandexVersion = version "jandex", "3.2.0"
def hcannVersion = version "hcann", "7.0.1.Final" def hcannVersion = version "hcann", "7.0.1.Final"
def jacksonVersion = version "jackson", "2.17.0" def jacksonVersion = version "jackson", "2.17.0"