Hi,
I am looking to accomplish the following
Entity A is linked with a one to many with Entity B
However, I do not want to define a OneToMany Collection of B in Entity A.
Rather, I want to create a OneToOne on Entity A to a custom collection class (CustomA)
CustomA would have a oneToMany of Entity B.
I have tried extending a HashSet to CustomA but that isn't working out for me.
Is there an accepted way of approaching this? Could not find a relevant topic in the forums.
Any help would be greatly appreciated!!
Chris
|