Hi mates, I've been reading as many posts as I've found regarding the EJB and Hibernate interaction to each other. I know they are not fully-friends but there are not enemies either. I am also aware they can coexist together and here is where my doubts start running around in my mind...
Currently, I've done some test about using Hibernate POJO objects and EJB. What I do is to wrap POJO objects into other data container objects which, broadly speaking, just extract all POJO objects and put them into other objects but one-to-many relaationships. Then the resultant object can be sent across the net with no problem.
This means Hibernate lazy feature is no longer usefull and other drawbacks.
Is this the right way of proceeding? How would you do that?
Thanks a lot for your help!
PS. I need an fine-layer client which is can be placed in a different JVM.
|