From aefb71f95dd635bc53b8f74d4838065b9ae3ede2 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 7 Mar 2024 13:20:23 +0100 Subject: [PATCH] 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 --- .../boot/model/internal/TableBinder.java | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/TableBinder.java b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/TableBinder.java index 7b85487cba..166827addc 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/internal/TableBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/internal/TableBinder.java @@ -863,20 +863,11 @@ public class TableBinder { } } - static void addJpaIndexes(Table table, List> indexes, MetadataBuildingContext context) { - for ( AnnotationUsage 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> indexes, + MetadataBuildingContext context) { + new IndexBinder( context ).bindIndexes( table, indexes ); } public void setDefaultName(