0

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?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

1 Answers1

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