Register / Login
Object Relational Mapping
posted 1 year ago
Hello to everybody.
I have this scenario:
One table called Items and other table called OperationsByItem.
PK of Items is id(
) and PK of OperationsByItem is item(String) which is FK to Items,kind(int) and position(int)
So, I have some operations for each Item and each can be of diffeent kind. And I can have more than one operation of the same kind.
I need to make a onetomany relation from items to operationsbyitem but only to get operations of a kind.
¿Can anyone help me, please?
OneToMany mappedBy composite (foreign) key gives empty collection - OpenJPA + EJB3
two parents, one child, ora-02291
HQL join for tables not related to each other