I would like some advice on how to associate/reference existing entities from database in a ManyToMany Uni-directional between County and School entities relationship. Below is the CountyBean.createCounty(County) which replaces any School records passed through County parameter with those already exist in SCHOOL table:
It is on line 17 of CountyBean where I want to only associate/link an existing School from DB with current County, instead of generating an additional duplicate School record in order to keep SCHOOL table normalize.
Your suggestion would be very much welcome.
Joined: Oct 20, 2006
Is there anyone out there who can help me with this question? Am I on the wrong track altogether?