In my application I use JPA 2.0 with Hibernate as the persistence provider. I have a one-to-many relationship between two entities (using a @JoinColumn
and not @JoinTable
). I wanted to know how could I specify inverse=true
(as specified in hbm.xml
) in JPA annotations to reverse the relationship owner.
Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…