例如private Set<String> emails = new HashSet<String>();
则在xml中写为
<set name="emails" table="t_person_emails">
<key column="person_id"/>
<element column="emails_name" type="string"/>
</set>
例如private Set<String> emails = new HashSet<String>();
则在xml中写为
<set name="emails" table="t_person_emails">
<key column="person_id"/>
<element column="emails_name" type="string"/>
</set>