Top "Hibernate-annotations" questions

Hibernate Annotations provide an alternative method of supplying metadata which maps Java objects to the database tables they represent.

org.hibernate.AnnotationException: Unknown mappedBy in: error

I am trying one to one relationships using annotations. This is the code. package test.hibernate; @Entity @Table(name="EMPLOYEE") …

hibernate hibernate-annotations
multiple @id annotations in a single entity

What is the difference between using multiple @Id in an entity Vs, Composite Id ? Also, how does this @EmbeddedId work …

hibernate hibernate-annotations
How to test @Valid

In my entities I have some hibernate annotations for validation, like @NotEmpty, @Pattern.. and others In my controller, on save …

junit annotations hibernate-annotations spring-annotations
JPA: Deleting detached instance

I get resultList from typedQuery object. I take first object from that list. eg. LoginAttempt loginAttempt = loginAttempts.get(0); When, I …

spring hibernate jpa jpa-2.0 hibernate-annotations
Hibernate mapping - "Could not determine type"

I currently have the following objects persisting successfully: Person first name, etc. Exams title, date, etc. I'd like to now …

java hibernate hibernate-annotations
ERROR: Unknown column 'this_.idHardDrives' in 'field list'

Please help with ERROR: Unknown column 'this_.idHardDrives' in 'field list'. Can`t understand the field 'idHardDrives' exist in the …

java hibernate hibernate-annotations
How to set hibernate.hbm2ddl.auto in Spring with Annotations and pure Java

How would one go about setting up the following in Spring using only Java and annotations. <property name="hibernate.…

java spring hibernate spring-annotations hibernate-annotations
Hibernate annotated many-to-one not adding child to parent Collection

I have the following annotated Hibernate entity classes: @Entity public class Cat { @Column(name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) @Id …

java hibernate jpa many-to-one hibernate-annotations
HiLo generator strategy not working

I am new to hibernate. What I am trying to do is use @CollectionIdto generate an identifier for my Address …

java hibernate collections hibernate-annotations
Hibernate Composite Key Using Annotation , Having One Foreign Key

I googled it but could't found any solution I Two classes Application.java and ApplicationVersion.java they have One-to-Many relation, …

hibernate one-to-many composite-key hibernate-annotations mappingexception