File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
hibernate-core/src/test/java/org/hibernate/test/idclass Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1010
1111import org .hibernate .Session ;
1212import org .hibernate .Transaction ;
13+ import org .hibernate .cfg .AvailableSettings ;
14+ import org .hibernate .cfg .Configuration ;
15+
1316import org .hibernate .testing .junit4 .BaseCoreFunctionalTestCase ;
1417
1518import static org .junit .Assert .assertEquals ;
@@ -22,6 +25,12 @@ public String[] getMappings() {
2225 return new String [] { "idclass/Customer.hbm.xml" };
2326 }
2427
28+ @ Override
29+ protected void configure (Configuration configuration ) {
30+ // the Customer entity has a composite id that is not embeddable ( not supported by JPA ).
31+ configuration .setProperty ( AvailableSettings .JPA_METAMODEL_POPULATION , "disabled" );
32+ }
33+
2534 @ Test
2635 public void testIdClass () {
2736 Session s = openSession ();
You can’t perform that action at this time.
0 commit comments