Is the buildSessionFactory() Configuration method deprecated in Hibernate?
When I updated the Hibernate version from 3.6.8 to 4.0.0, I got a warning about deprecated method buildSessionFactory() in this line: private static … Read more
When I updated the Hibernate version from 3.6.8 to 4.0.0, I got a warning about deprecated method buildSessionFactory() in this line: private static … Read more
In this code, how to generate a Java class for the composite key (how to composite key in hibernate): create table Time ( … Read more
I was working on my Spring boot app project and noticed that, sometimes there is a connection time out error to my Database … Read more
In this application we are developing, we noticed that a view was particularly slow. I profiled the view and noticed that there was … Read more
For example, if we have a table Books, how would we count total number of book records with hibernate? 8 Answers 8
Why am I getting this exception? package com.domain.idea; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; import javax.persistence.Table; import org.hibernate.annotations.AccessType; /** … Read more
Please help me understand where to use a regular JOIN and where a JOIN FETCH. For example, if we have these two queries … Read more
When they appear on a field/getter of an @Entity, what is the difference between them? (I persist the Entity through Hibernate). What framework … Read more
Can anyone explain in simple words what First and Second Level caching in Hibernate/NHibernate are? 7 Answers 7
In Hibernate 3, is there a way to do the equivalent of the following MySQL limit in HQL? select * from a_table order … Read more