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?
Asked
Active
Viewed 94 times
1 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

Community
- 1
- 1

Madhusudana Reddy Sunnapu
- 8,064
- 2
- 18
- 29
-
Thank you. But i known jpa allow this. What is your opinion. – Osman Demirci Dec 26 '15 at 12:44