The question is in the title. Below I just described some of my thoughts and findings. When I had a very simple domain model (3 tables without any relations),...
What is lazy loading in Java? I don’t understand the process. Can anybody help me to understand the process of lazy loading? 14 Answers 14
Ok so this is probably a trivial question but I’m having trouble visualizing and understanding the differences and when to use each. I’m also a little unclear as to...
I don’t understand what is the actual difference between annotations javax.transaction.Transactional and org.springframework.transaction.annotation.Transactional? Is org.springframework.transaction.annotation.Transactional an extension of javax.transaction.Transactional or they have totally different meaning? When should each of...
I’m using jackson to convert an object of mine to json. The object has 2 fields: @Entity public class City { @id Long id; String name; public String getName()...
I have a situation in which I need to re-attach detached objects to a hibernate session, although an object of the same identity MAY already exist in the session,...
Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the differences between them, when to use...
I am new to hibernate and need to use one-to-many and many-to-one relations. It is a bi-directional relationship in my objects, so that I can traverse from either direction....
I am a little confused about the JPA 2.0 orphanRemoval attribute. I think I can see it is needed when I use my JPA provider’s DB generation tools to...
This question already has answers here: What is the easiest way to ignore a JPA field during persistence? (10 answers) Closed 5 years ago. I thought hibernate takes into...

