Top "Hibernate-mapping" questions

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

Hibernate association references unmapped class exception

I have the following class: public class Car implements Comparable<Car>{ private long idCar; private String model; private …

hibernate hibernate-mapping
Hibernate: unmapped class association exception

I know this should be a pretty elementary issue to fix, but 1) I'm relatively new to Hibernate, and 2) the fixes …

hibernate exception hibernate-mapping mappingexception
Hibernate many to many - fetch method eager vs lazy

New to Hibernate. I have User Group many to many relation. Three tables : User , Group and UserGroup mapping table. Entities: @…

java hibernate orm many-to-many hibernate-mapping
Java Hibernate Mapping Exception! (Could not determine type for: java.util.Map)

I have made a class with name of Movie with folowing fields: @Id @GeneratedValue private Long id; private String name; @…

java hibernate-mapping hibernate-annotations
Native SQL throwing Invalid Column Name Exception

I am using Hibernate 3.2.5 for my application. I have a Dept table and an Employees table. Dept.java private int …

java hibernate orm hibernate-mapping
Why does JPA use FetchType EAGER by default for the @ManyToOne relationship

I came to notice that he default FetchType for the @ManyToOne mapping is EAGER i JPA and Hibernate, whereas, for …

java hibernate jpa orm hibernate-mapping
Spring and/or Hibernate: Saving many-to-many relations from one side after form submission

The context I have a simple association between two entities - Category and Email (NtoM). I'm trying to create web …

hibernate spring-mvc jpa many-to-many hibernate-mapping
How to best map results from an SQL query to a non-entity Java object using Hibernate?

I have a Hibernate managed Java entity called X and a native SQL function (myfunc) that I call from a …

java hibernate hibernate-mapping
javax.persistence Annotations on field, getter or setter?

I am currently learning Hibernate and the Java Persistence API. I have an @Entity class, and need to apply annotations …

java hibernate-mapping
Difference between @MapKey, @MapKeyColumn and @MapKeyJoinColumn in JPA and Hibernate

As per Hibernate documentation, there are multiple annotations available if we want to use Map as an association between our …

java hibernate jpa orm hibernate-mapping