insert « Load « JPA Q&A





1. Hibernate: load a field from a query , but don't insert it to the table    stackoverflow.com

I have a bean with a certain field f1 that should not be mapped into the table , but sometime I do want to load it from some queries (not the ...

2. one-to-one -- trying to do cascading insert and lazy load    forum.hibernate.org

It appears that there is no way to get cascading insert and lazy loading to work using the same one-to-one mapping definition. In the docs/code below, I am attempting to use constrained="true" so that lazy load will work. But when I use this then my cascading insert fails. Hibernate seems to be trying to insert the child (User) before the parent ...

3. why does it delete/insert when i load object    forum.hibernate.org