Can any help me with this? It's similar but I need to do it without annotations and using the mapping xml instead:
I have a Center and Examinee as beans and a mapping table with id,examinee_id,center_id
I want to retrieve a list of center_id as a list in each Examinee bean. I origianlly had:
Code:
<set name="centers" lazy="false" order-by="center_id" inverse="true" cascade="all-delete-orphan" table="ot_examinee_center_map">
<key column="examinee_id" />
<many-to-many column="center_id" class="com.webaccess.onlinetest.model.beans.Center" />
</set>
but this gives a set with Center beans. I need to instead retrieve a List of center_id for each Examinee.