I don't know how i can do that, or what kind of relation i will choose.
I have 3 tables and 1 association which is :
Client -----(0,n)---- (Command) -----(0,n)----- Service
Target is also attached with the (command) association, and Target can be Null in Command (0,1). The relation between Command and Client is bidirectional.
For me, the class diagram will be like this :
But i don't know how to proceed, if i create an entity in Command with a @ManyToOne, or other method. My real problem is about the association with three tables. Could you help me ?