Top "Hibernate-mapping" questions

Hibernate uses mapping metadata to find out how to load and store objects of the persistent class.

Set creation and update time with Hibernate in Xml mappings

I'm using Hibernate with Xml mappings. I have an entity that has two fields creationDate and updateDate of type timestamp, …

hibernate orm hibernate-mapping hbm
Hibernate: composite-id with key-many-to-one generating java.lang.stackoverflow error

I've been trying to map the following tables into Hibernate with hbm files: CREATE TABLE additional_info ( info_id SMALLINT, …

java hibernate hibernate-mapping hbm
Hibernate lazy loading for reverse one to one workaround - how does this work?

I was having problems today with lazy loading not working when using a mapped by collection. I found this excellent …

java hibernate hibernate-mapping
Hibernate recursive mapping parent/child structure - StackOverflowError when retrieve data

I am using Hibernate 5.2.7.Final, and native Hibernate API. I have an Employee entity with recursive relations: @Entity public class …

hibernate recursion parent-child hibernate-mapping jpa-annotations
saveorupdate() does not update collection (list) one-to-many mapping in hibernate

class Student public class Student { private Long id; private String name; private String className; private List<Phone> phones; // …

java hibernate hibernate-mapping hibernate-onetomany
What is the difference between @Entity in Hibernate and JPA

When i am doing sample Hibernate standalone program, little bit confusing was created in my mind with the usage of @…

java hibernate jpa orm hibernate-mapping
Hibernate @OrderBy for nested properties

I need to use @OrderBy (JPA, Hibernate as provider) to sort collection for nested property: @OneToMany(mappedBy = "paramSpec", cascade = CascadeType.…

java hibernate jpa orm hibernate-mapping
Bug in Spring Data JPA: Spring Data returns List<BigInteger> instead of List<Long>

I have DAO implementation over spring-data: public interface TestDataRepository extends CrudRepository<DpConfigData, Long> { @Query(value = "select distinct(oid) …

postgresql hibernate-mapping spring-data-jpa
JPA, Hibernate: OneToOne mapping with foreign key only

Environment: Hibernate 4.1.6.final Spring 3.1.2.release Spring JPA 1.1.0.release PostgreSQL 9.1-901-1.jdbc4 I decided to rephrase the questions. There are 2 …

java hibernate jpa hibernate-mapping
JPA ManyToMany unidirectional relationship

Lets say we have two Entities, Entity Node and Entity Cluster. A Cluster has many Nodes. A Node can belong …

hibernate jpa spring-data hibernate-mapping