1. When does retrieving a Hibernate proxy's id initialize the proxy? stackoverflow.comIn Hibernate when you retrieve an Entity via a load, if you access that Entity's id accessor it does not initialize the proxy:
|
2. How to test whether lazy loaded JPA collection is initialized? stackoverflow.comI have a service that gets a JPA entity from outside code. In this service I would like to iterate over a lazily loaded collection that is an attribute of this ... |
3. Use of Hibernate.initialize() when lazy loading is configured coderanch.comHi , I know to avoid LazyIniializationException we do Hibernate.initialize(Object obj) so tht object that is passed as argument to initialize() method is initialized and can be used outside of the scope of the session . But what I am not able to understand how this works . I mean if we are doing then we end up in having eager ... |
4. Lazy loading for attribuite initialized in the constructor forum.hibernate.orgHi I have identified the following behavior and I am wondering if there is any workaround for this: If we map an attribute which is a List with a |
5. Detecting if a lazy loaded collection is initialized or not forum.hibernate.org |
6. Custom SQL for collection loading - initialize problem forum.hibernate.orgNewbie Joined: Tue Dec 13, 2005 11:19 am Posts: 5 Location: Lisboa, Portugal Hello, I have two collection in one class for which I am using custom SQL for loading. There is no exception thrown and in fact hibernate.loader log shows that the records are properly identified and hydrated. -> Problem is - the collection ends up empty! Hibernate is configured ... |
7. Problem with initialize / isInitialized on lazy loading coll forum.hibernate.orgSet mySet = myObject.getMySet(); //here mySet has a value, and when i inspect it, it isn t initialized (initialized=false) if (!Hibernate.isInitialized(mySet)){ //logically, come here, because still not initialized, but property "isInitializing" is to true Hibernate.initialize(mySet); //here i have an hibernate error because of a second call of ... |
8. Problem calling Hibernate.initialize 2nd time w/Lazy Loading forum.hibernate.orgHibernate version: 3.1.2 We are upgrading from Hib2 to Hib3 and have run into an issue when calling Hibernate.initialize. In this case our entity does not exist in the database but because we are lazy loading the session.load() still returns a proxy. The first call to initialize() throws an ObjectNotFoundException as expected. The second call however does not throw the ObjectNotFoundException ... |
9. MapKeyManyToMany: key entity not initialized when map loaded forum.hibernate.orgNewbie Joined: Fri Aug 29, 2003 3:28 am Posts: 4 Hibernate version: hibernate-3.2.5.ga hibernate-annotations-3.3.0.ga I have a Map |