org.hibernate.test.criteria.OuterJoinCriteriaTest fails on Oracle

Description

All tests from org.hibernate.test.criteria.OuterJoinCriteriaTest are failing on Oracle DBs, because Oracle dialect doesn't support identity key generation.

This identity key generation is used in Order entity:
http://anonsvn.jboss.org/repos/hibernate/core/tags/hibernate-3.3.2.GA_CP05/testsuite/src/test/java/org/hibernate/test/criteria/Order.hbm.xml

org.hibernate.test.criteria.OuterJoinCriteriaTest.testSubcriteriaWithNonNullRestrictions

Error Message

Dialect does not support identity key generation

Stacktrace

org.hibernate.MappingException: Dialect does not support identity key generation
at org.hibernate.dialect.Dialect.getIdentityColumnString(Dialect.java:577)
at org.hibernate.dialect.Dialect.getIdentityColumnString(Dialect.java:567)
at org.hibernate.mapping.Table.sqlCreateString(Table.java:414)
at org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:895)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:104)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:354)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1342)
at org.hibernate.junit.functional.ExecutionEnvironment.initialize(ExecutionEnvironment.java:107)
at org.hibernate.junit.functional.FunctionalTestCase.setUp(FunctionalTestCase.java:92)
at org.hibernate.junit.UnitTestCase.runBare(UnitTestCase.java:64)

Environment

None

Activity

Show:
Zbyněk Roubalík
September 12, 2012, 6:48 PM
Brett Meyer
September 14, 2012, 8:20 PM

Rejecting this here. The test does not fail on recent master builds. The Table SchemaGenerator logic that was causing the issue appears to have been changed a bit.

This test-only fix will be corrected in the 3.3.2 branch under JBPAPP-9893

Assignee

Brett Meyer

Reporter

Zbyněk Roubalík

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure