Hibernate
Map one object to another object without using foreign key
Hibernate ORM
vlad
November 5, 2018, 8:35am
2
You can
@JoinFormula
. Check out these two articles for some examples:
How to map the latest child of a parent entity using Hibernate
@JoinFormula
How to customize an entity association JOIN ON clause with Hibernate
@JoinFormula
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Is-a and Has-a Problem mapping foreign key
Hibernate ORM
5
548
January 20, 2019
Hibernate Mapping
Hibernate ORM
0
18
May 6, 2025
Creating ToOne relationships that do not use the Primary Key Columns
Hibernate ORM
1
529
May 4, 2023
How to use the Hibernate @JoinFormula annotation with a @OneToMany JPA association?
Hibernate ORM
6
28930
December 9, 2019
How to reference a parent association using @JoinColumns without referencing the parent identifier with JPA and Hibernate
Hibernate ORM
5
6581
January 8, 2019