I think I got it now. Only possibility is to enumarte classed in FROM Clause an do in WHere clause: Alias.ObjectID = ChildAlias.ObjectId
corrcted: not possible because I need Outer Join syntax
The question remains, why comes the NPE ?
I have tried pure @org.hibernate.annotations.CollectionOfElements annotation without Fetchtype without effects.
->
viewtopic.php?t=971700&highlight=onetomany+collectionofelements The Query Compiler does not recognize "difference" as a bag
Next try was to verify my autodetection properties
before:
persistenceProperties.put("hibernate.archive.autodetection" , "");
persistenceProperties.put("hibernate.ejb.autodetection" , "hbm");
Now:
persistenceProperties.put("hibernate.archive.autodetection" , "");
// persistenceProperties.put("hibernate.ejb.autodetection" , "hbm"); //remarked for class,hbm default
-> NO EFFECTS, NPE remains
-> Dear Experts: Is it nice for u to watch such a MultipleCHoiceThread ? Hoply not...
some additional debug infos:
2009-12-30 20:09:09,744 [DEBUG] org.hibernate.hql.ast.tree.FromReferenceNode - Resolved : DifferencesToPriorStorage_JOINED15 -> difference14_.ObjectId
2009-12-30 20:09:09,745 [DEBUG] org.hibernate.hql.ast.tree.DotNode - getDataType() : Difference -> org.hibernate.type.ListType(yourPackage.DifferencesToPriorStorage.Difference)
2009-12-30 20:09:09,745 [DEBUG] org.hibernate.hql.ast.tree.FromElement - FromClause{level=1} : null (ABSD) -> difference15_
2009-12-30 20:09:09,745 [DEBUG] org.hibernate.hql.ast.tree.FromClause - addCollectionJoinFromElementByPath() : DifferencesToPriorStorage_JOINED15.Difference -> DifferencesToPriorStorage_Difference
2009-12-30 20:09:09,745 [DEBUG] org.hibernate.hql.ast.tree.DotNode - dereferenceCollection() : Created new FROM element for DifferencesToPriorStorage_JOINED15.Difference : DifferencesToPriorStorage_Difference difference15_
2009-12-30 20:09:09,745 [DEBUG] org.hibernate.hql.ast.tree.FromReferenceNode - Resolved : DifferencesToPriorStorage_JOINED15.Difference -> .
2009-12-30 20:09:09,745 [DEBUG] org.hibernate.hql.ast.HqlSqlWalker - createFromJoinElement() : -- join tree --
\-[JOIN_FRAGMENT] FromElement: 'DifferencesToPriorStorage_Difference difference15_' FromElement{explicit,collection join,fetch join,fetch non-lazy properties,classAlias=ABSD,role=yourPackage.DifferencesToPriorStorage.Difference,tableName={none},tableAlias=difference15_,origin=JournalEntry journalent13_,colums={,className=null}}
why is the Type null : "null (ABSD) -> difference15_"