Creation timestamp and last update timestamp with Hibernate and MySQL
For a certain Hibernate entity we have a requirement to store its creation time and the last time it was updated. How would … Read more
For a certain Hibernate entity we have a requirement to store its creation time and the last time it was updated. How would … Read more
I am new to Hibernate and I’m not sure whether to use a Hibernate SessionFactory or a JPA EntityManagerFactory to create a Hibernate … Read more
What are the main differences between Hibernate and Spring Data JPA? When should we not use Hibernate or Spring Data JPA? Also, when … Read more
I have a JPA-persisted object model that contains a many-to-one relationship: an Account has many Transactions. A Transaction has one Account. Here’s a … Read more
I am trying run a spring-boot application which uses hibernate via spring-jpa, but i am getting this error: Caused by: org.hibernate.HibernateException: Access to … Read more
What are the pros and cons of using Criteria or HQL? The Criteria API is a nice object-oriented way to express queries in … Read more
I’m having the following issue when trying to update my entity: “A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity … Read more
I’m essentially looking for a “@Ignore” type annotation with which I can stop a particular field from being persisted. How can this be … Read more
There have been some discussions here about JPA entities and which hashCode()/equals() implementation should be used for JPA entity classes. Most (if not … Read more
Is it okay to run Hibernate applications configured with hbm2ddl.auto=update to update the database schema in a production environment? 15 Answers 15