Hi, In my DAO i have combined two tables and excecuted a query somethg like: select object(obj) from POL pol,REQ req where pol.adc=req.adc and pol.inicd='133'
I have used EntityA having one to many relationship with EntityB like: @OneToMany(mapped by="collection") List<EntityB> ListInfo; EntityB has ManyToOne relationship with EntityA(mapped by collection) Now in the DAO i have executed the query. There is no exception. But while retrieving data from the List, i get "SQLGrammerException:Could not initialize a Collection".
I am able to get values for EntityA but those List Values from EntityB could not be retrieved.
can anyone hlp me?
|