Top "Hibernate-annotations" questions

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

Hibernate: Add a property in my class that is not mapped to a db-table

I have a table tbl_sky that has 2 properties name and model and I would use Hibernate annotation like; @Entity @…

java hibernate annotations hibernate-annotations
Hibernate recursive many-to-many association with the same entity

Another Hibernate question... :P Using Hibernate's Annotations framework, I have a User entity. Each User can have a collection of …

java hibernate jakarta-ee entity-relationship hibernate-annotations
Hibernate buildSessionFactory() Exception

I have a serious problem with hibernate. I followed various books und online tutorials, but I ever get the same …

hibernate hibernate-annotations
Creating Indexes on DB with Hibernate @Index Annotation

I have annotation-driven hibernate capabilies on my project. Now I want to create an index over a column. My current …

java hibernate annotations hibernate-annotations database-indexes
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
Why is my EmbeddedId in hibernate not working?

I have a compound Primary Key (IDHOLIDAYPACKAGE, IDHOLIDAYPACKAGEVARIANT) in table HolidayPackageVariant where IDHOLIDAYPACKAGE refers to entity HolidayPackage with a Many …

java hibernate jpa hibernate-annotations composite-primary-key
How can i insert a row using hibernate method?

I am trying to insert a row into a relation table Stock Category. I am following this example: http://www.…

java hibernate hibernate-mapping hibernate-annotations
Hibernate naming strategy

I am building a REST webservice with Spring (Boot) and am trying to use hibernate as orm mapper without any …

spring hibernate hibernate-annotations spring-boot
Hibernate JPA IdentifierGenerationException: null id generated for class with @embeddedid

I am having trouble mapping my database domain model to the program entities in one case where the entity is …

java hibernate jpa hibernate-annotations
Disable Lazy Loading in Hibernate

How do I disable lazy loading in Hibernate? I am using persistence annotations, not an hbm xml file. I am …

hibernate persistence lazy-evaluation hibernate-annotations