Reputation: 1
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
Reputation: 8247
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