本文介绍了来自superClass的JPA OneToMany协会的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试映射超类LendingLine和子类Line和BlockLine的继承。 LendingLine与Lending有一个ManyToOne关联。
I’m trying to map the inheritance from the superclass LendingLine and the subclasses Line and BlockLine. LendingLine has an ManyToOne association with Lending.
当我尝试从没有继承的数据库中获取LendingLines时,它可以正常工作。该协会也有效。但是当我添加继承时,Lending中的lendingLines是空的。我也无法从继承的DB中获取任何LendingLines。
When I try to get the LendingLines from the database without the inheritance it works fine. The association works also. But when i add the inheritance, lendingLines in Lending is empty. I also can't get any LendingLines from the DB with the inheritance.
任何人都可以帮助我吗?
Can anybody help me?
(对不起,不好解释)
提前致谢!
这篇关于来自superClass的JPA OneToMany协会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!