Top "Hibernate-mapping" questions

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

HIbernate Mapping Exception: PropertyNotFoundException: Could not find a setter

I have two POJO's ,STOCK and STOCK_DETAILS (one to many relationship). Also I have one interface IAUDITLOG (having two …

java spring hibernate hibernate-mapping
How to connect multiple database with reusing cfg.xml and util class?

I want to connect multiple databases like SQL and Oracle with different databases.So i already had MSSQL hibernate.cfg.…

java hibernate orm hibernate-mapping mssql-jdbc
Map entity using query in Hibernate

consider table sales (id, seller_id, amount, date) and here is a view that is generated from sales using query …

hibernate hql hibernate-mapping
When Should I Use @JoinColumn or @JoinTable with JPA?

@JoinColumn gives an Entity a foreign key to another Entity whereas @JoinTable will list the relationship between all relationships between …

java hibernate jpa orm hibernate-mapping
@ManyToOne and @BatchSize

I found in some old code strange thing (at least for me). The field which is annotated @ManyToOne is also …

java hibernate hibernate-mapping hibernate-annotations
IllegalArgumentException in class: ..., getter method of property: id

am facing a weird problem, I have googled it for hours, but did not find out how to solve it. …

hibernate spring-mvc hibernate-mapping jta
Hibernate map enum to varchar

Suppose I have this enum: public enum TestEnum { EXAMPLE, FURTHER_EXAMPLE, LAST_EXAMPLE } With this mapping in the .hbm: <…

hibernate enums hibernate-mapping varchar
How to avoid creating a new row if similar row exists?

I need to configure hibernate to avoid creating duplicate rows, (although the row exists it creates a new one, and …

hibernate jakarta-ee hibernate-mapping updates hibernate-annotations
Hibernate mapping exception - Could not determine type for:

Im trying to configure my entities but hibernate throws the following exception: org.hibernate.MappingException: Could not determine type for: …

java hibernate jpa orm hibernate-mapping
Hibernate annotation or XML configuration

I have started a new project with Hibernate. Is Hibernate annotation a better choice or is Hibernate XML mapping better? …

hibernate hibernate-mapping hibernate-annotations