1. How to enforce lazy loading of entities on certain conditions stackoverflow.comWe have an JPA @Entity class (say User) which has a @ManyToOne reference (say Address) loaded using the EAGER option which in turn loads it's own @ManyToOne fields (say Country) in ... |
2. Hibernate - how to delete with condition without loading to memory? stackoverflow.comI have an object -
|
3. hibernate - how to do a conditional delete without loading to memmory stackoverflow.comI have an object -
|
4. collection wont load under certain conditions forum.hibernate.orgHi, First, let me appologize for a long post. The problem I am hitting requires a bit of explanation. The problematic collection is the SelectedProvisionClass.SelectedProvisions When I load SelectedProvisionClass directly using an id the collection loads fine: (notice the provisions count in the last line of output) Code: SelectedProvisionClassId id =new SelectedProvisionClassId(new Long(9), new Long(40)); ... |
5. how to load children based on a condition? Help urgent!!! forum.hibernate.org* @hibernate.set inverse="true" cascade="save-update" lazy = "false" * @hibernate.collection-key column="PART_ID" * @hibernate.collection-one-to-many class="CLASS2" public Set getPartsThatReplacesThisPart() { return this.partsThatReplacesThisPart;; } * @hibernate.set inverse="true" cascade="save-update" lazy = "false" ... |
6. Conditional loading of objects forum.hibernate.orgHi, I'm a beginner with using Hibernate and I've got a question. I have a database in which records are never deleted, instead when you remove a client in the application, the client's status is set to inactive, the same for most other objects. A client has a list of members, which I define with a one-to-many relationship. When I select ... |