Osman Demirci
Osman Demirci

Reputation: 1

How to join two or more not association entity like as sql joined with on condition

I have entity class, those classes not association but have common property (ex. Serial no). I don't want to write association for tables. I want joined tables like SQL join condition. How do I write criteria query for this issue?

Upvotes: 0

Views: 96

Answers (1)

Criteria query can be use only if there is an association. You can use HQL if there is no association but still want to join. Still the below link

Hibernate criteria: Joining table without a mapped association

Upvotes: 1

Related Questions