Check out my kickstarter CLICK HERE
My book, my movies, my videos, my podcasts, my events ... the big collection of paul wheaton stuff!
Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
Originally posted by Brian McCallister:
I am pretty sure you can configure hibernate t not use lazy loading, and if you cannot - i know for a fact it is configurable in OJB.
Originally posted by Kenneth Robinson:
If I have a Stateless Sesssion Bean I can call a Remote Interface and I get a bean created by Hibernate that contains some sort of Collection, my client has to have either the entire Hibernate jar file or a subset of it just for the Hibernate Collections. Also, Lazy Init is not even an option as this point since the actual bean has not idea that is now 'remote' and 'outside of Hibernate', thus the underlying Connection to it's persistent data just does not exist on the client.
[ January 05, 2004: Message edited by: Kenneth Robinson ]
Originally posted by Renat Zubairov:
In Hibernate it's possible to detach object or attach it back and in this case you don't have a dependency on connection anymore.
You can read about it here:
http://www.hibernate.org/21.html#A11
Originally posted by Renat Zubairov:
In Hibernate it's possible to detach object or attach it back and in this case you don't have a dependency on connection anymore.
You can read about it here:
http://www.hibernate.org/21.html#A11
Originally posted by Kenneth Robinson:
Ok, I've given this much thought and I still need convincing, so here are a few questions:
-In a distributed environment, does the client need to know about Hibernate (have the Hibernate jar or other jar) to use the beans created by Hibernate to represent the persistent data?
-Say a SLSB is called and it creates, through Hibernate, an OrderBean. It sends that OrderBean to the remote client. That OrderBean has a member called orderItems that is a Collection. When created, the orderItems Collection was not initialized. What can/can't the client do with that Collection on the Client side?
Most of these questions have to do with the fact that I do not know what Hibernate does with the bean when it is modified through CGLib. I know that Hibernate implements their own Collections and those are placed into the bean as the implementation of the defined Collection interface. This has to effect the client somehow as a concrete implementation of the Collection is required on the client end, it is going to know that is was a Hibernate Collection and even if the client has that class available, what classes does it need (Hibernate Session) as the Collection may be uninitialized?
Don't get me started about those stupid light bulbs. |