Skip to content

Commit d22bd95

Browse files
committed
Merge pull request hibernate#13 from dreab8/HHH-10664_IdClassTest
Fix IdClassTest
2 parents 1783fae + 8c85b95 commit d22bd95

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hibernate-core/src/test/java/org/hibernate/test/idclass/IdClassTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
import org.hibernate.Session;
1212
import org.hibernate.Transaction;
13+
import org.hibernate.cfg.AvailableSettings;
14+
import org.hibernate.cfg.Configuration;
15+
1316
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
1417

1518
import 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();

0 commit comments

Comments
 (0)