This content has been marked as final.
Show 2 replies
-
1. Hibernate entity as webservice response
adamw May 21, 2011 3:08 AM (in response to ashly)I think it's the wrong forum.
Adam
-
2. Hibernate entity as webservice response
tagnegilles May 23, 2011 3:43 PM (in response to ashly)Hi Ashly
when you make select * from A you receive a list of A entities without the corresponding B entities because the default fetch modus of OneToMany is Lazy. To have the corresponding B entities make this query
select a from A a join fetch a.listofbs
With this query you are sure to have A entities with the corresponding B entities
Gilles