I have the following problem:
I need to make a relation (OneToMany) between a entity on my server and a entity in my library (ManyToOne).
My program consists of 3 main components:
- a client (who uses session beans to query the server)
- a server (which contains entity's)
- a lib which is shared between the client and the server. (which also contains entity's)
Here is the thing I want to do:
Class on my Server:
Class on my Library:
It's not an option to move ClassOnServer to my lib because this would ruin the whole architecture.
Do you guys have any suggestions on how to solve this?