When and why JPA entities should implement the Serializable interface?
The question is in the title. Below I just described some of my thoughts and findings. When I had a very simple domain … Read more
The question is in the title. Below I just described some of my thoughts and findings. When I had a very simple domain … Read more
What is lazy loading in Java? I don’t understand the process. Can anybody help me to understand the process of lazy loading? 14 … Read more
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 … Read more
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 … Read more
I’m using jackson to convert an object of mine to json. The object has 2 fields: @Entity public class City { @id Long … Read more
I have a situation in which I need to re-attach detached objects to a hibernate session, although an object of the same identity … Read more
Hibernate has a handful of methods that, one way or another, takes your object and puts it into the database. What are the … Read more
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 … Read more
I am a little confused about the JPA 2.0 orphanRemoval attribute. I think I can see it is needed when I use my … Read more
This question already has answers here: What is the easiest way to ignore a JPA field during persistence? (10 answers) Closed 5 years … Read more