Hi .
can somebody to give me some idea?
a collection of folders belonging to a owner is many to one relationship so a collection of folders with one owner is ok but if a owner has two different collections; it should be ok, right? the annotation as folows:
I use the annotation in bean:
@ManyToOne ( targetEntity = research.utils.Member.class, optional=false )
@JoinColumn(name="owner", insertable=false, updatable=false, nullable=false)
for another collection in the same bean :
@ManyToOne ( targetEntity = research.utils.AdminMember.class, optional=false )
@JoinColumn(name="adminOwner", insertable=false, updatable=false, nullable=false)
however, when hibernate join table even it is " member" object , it still want to join " adminmember"
I use Sping as entitymanager to manage transaction ...
who can comment on this?
Thank you in advance
|