override « Load « JPA Q&A





1. Best way to override Hibernate's lazy loading in this instance    stackoverflow.com

Suppose you have class B with lazily loaded property c. And that this is fine everywhere in the system except the following: You have a class A with property b ...

2. Override lazy loading setting for related entities in a hibernate mapping file    stackoverflow.com

I have a mapping file which sets lazy=false for some related entities. This makes sense for a lot of use cases but there are some exceptions. The problem is that I ...

3. Override LOAD of SingleTableEntityPersister    forum.hibernate.org

Hello, I'm working in a project with hibernate + ehcache. I'm trying to override the LOAD method of SingleTableEntityPersister for one concrete object. I want to override it, so as to load the object not only taking into account the ID property but also some other(s). I've overwritten that method by calling a named query. At first, it seemed to work, ...

4. getId overrides lazy-loading?    forum.hibernate.org

Dear all, I am a bit confused about the lazy loading mechanism. My environnement is the following: - JPA as API - Hibernate as implementation with hibernate-3.2.4.jar hibernate-entitmanager-3.3.1.ga hibernate-annotations-3.3.0.ga My test is very simple. 1) domain object model Two domain objects Employee and Coordonnes, with an association One-to-One (unidiretional) between the two ones and coordonnees association configured to be lazy-loaded. Below ...