HHH-17504 - Ongoing JPA 32 work HHH-17350 - Work on hibernate-models, XSD and JAXB HHH-16114 - Improve boot metamodel binding HHH-15996 - Develop an abstraction for Annotation in annotation processing HHH-16012 - Develop an abstraction for domain model Class refs HHH-15997 - Support for dynamic models in orm.xml HHH-15698 - Support for entity-name in mapping.xsd

This commit is contained in:
Andrea Boriero 2024-03-07 13:20:23 +01:00 committed by Steve Ebersole
parent e5d9586ba3
commit aefb71f95d
1 changed files with 5 additions and 14 deletions

View File

@ -863,20 +863,11 @@ public class TableBinder {
}
}
static void addJpaIndexes(Table table, List<AnnotationUsage<jakarta.persistence.Index>> indexes, MetadataBuildingContext context) {
for ( AnnotationUsage<jakarta.persistence.Index> indexUsage : indexes ) {
final String name = indexUsage.getString( "name" );
final String columnList = indexUsage.getString( "columnList" );
final String[] columnFragments = columnList.split(",");
//no need to handle inSecondPass here since it is only called from EntityBinder
context.getMetadataCollector().addSecondPass( new IndexOrUniqueKeySecondPass(
table,
name,
columnFragments,
context
) );
}
static void addJpaIndexes(
Table table,
List<AnnotationUsage<jakarta.persistence.Index>> indexes,
MetadataBuildingContext context) {
new IndexBinder( context ).bindIndexes( table, indexes );
}
public void setDefaultName(