I have two tables with no modeled relation:
Table comm
with columns:
name
date
code
Table persondesc
with columns:
code
description
Relationship between the two tables is many to one (many comm to one persondesc):
com.code = persondesc.code
These two tables are mapped with annotations but I have no relation declared.
What I'm trying to is to select comm
table ordered by persondesc.description
.
How can I do this JPA and Hibernate?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…