Top "Hibernate-mapping" questions

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

Hibernate - A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance

I'm having the following issue when trying to update my entity: "A collection with cascade=”all-delete-orphan” was no longer referenced …

java hibernate hibernate-mapping
Hibernate table not mapped error in HQL query

I have a web application that use Hibernate to make CRUD operations over a database. I got an error saying …

java eclipse spring hibernate hibernate-mapping
Can someone explain mappedBy in JPA and Hibernate?

I am new to hibernate and need to use one-to-many and many-to-one relations. It is a bi-directional relationship in my …

java hibernate jpa jakarta-ee hibernate-mapping
How can I mark a foreign key constraint using Hibernate annotations?

I am trying to use Hibernate annotation for writing a model class for my database tables. I have two tables, …

java hibernate hibernate-mapping hibernate-annotations
How to map calculated properties with JPA and Hibernate

My Java bean has a childCount property. This property is not mapped to a database column. Instead, it should be …

java hibernate jpa orm hibernate-mapping
Hibernate SQL Query result Mapping/Convert TO Object/Class/Bean

1 2: select (table.*)/(all column) is OK String sql = "select t_student.* from t_student"; //String sql = "select t_student.id,…

java sql hibernate hibernate-mapping
how to return Map<Key, Value> with HQL

i have a table Permission: id name desc what i am doing right now is to make a query that …

hibernate hql hibernate-mapping
Hibernate throws strange error: Class is not mapped

this is the error org.hibernate.hql.ast.QuerySyntaxException: Payment is not mapped [select p from Payment p] I don't …

java hibernate jpa orm hibernate-mapping