-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
4.3.0.GA_CP10
-
None
-
DB2-91,DB2-97,Sybase15,Sybase155
-
NEW
https://hibernate.onjira.com/browse/HHH-4394
Error Message
could not initialize a collection: org.hibernate.test.annotations.manytomany.Employer.contractors#1
Stacktrace
org.hibernate.exception.SQLGrammarException: could not initialize a collection: org.hibernate.test.annotations.manytomany.Employer.contractors#1
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.loader.Loader.loadCollection(Loader.java:2012)
at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36)
at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:565)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1758)
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109)
at org.hibernate.collection.PersistentBag.size(PersistentBag.java:225)
at org.hibernate.test.annotations.manytomany.ManyToManyTest.testOrderByContractor(Unknown Source)
at org.hibernate.test.annotations.TestCase.runTestMethod(Unknown Source)
at org.hibernate.test.annotations.TestCase.runTest(Unknown Source)
Caused by: com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703, SQLERRMC=EMPLOYEE.FLD_NAME, DRIVER=3.61.75
at com.ibm.db2.jcc.am.ed.a(ed.java:676)
at com.ibm.db2.jcc.am.ed.a(ed.java:60)
- relates to
-
JBPAPP-5930 HHH-4394 @OrderBy is used in conjunction with a table per class hierarchy produces incorred SQL syntax.
- Closed