Top "Hibernate-annotations" questions

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

How do I disable Hibernate foreign key constraint on a bidirectional association?

I am trying to disable the foreign key constraint being generated on my bidirectional association. I have managed to do …

java hibernate foreign-keys hibernate-annotations
Hibernate Annotations Id for table with no primary key

I have a table that has no primary key, and one cannot be created either. I can construct a unique …

sql hibernate hibernate-annotations
How to validate database schema programmatically in hibernate with annotations?

It seems that org.hibernate.cfg.Configuration object can be used to perform validation programmatically, by calling the validateSchema method. …

hibernate spring database-schema hibernate-annotations
NamedQuery defined in DAO annotation not found by Hibernate session factory

I use Spring along with Hibernate. In my DAO, I defined a NamedQuery which is not found by the session …

hibernate spring jpa hibernate-annotations named-query
How to load only ids from Many to Many mapping tables?

In a Many to Many relation between two table with a Mapping table in between, how can I only load …

hibernate hibernate-mapping hibernate-annotations