hello forum!
is it possible to map the following xml-fragment with annotations?
Code:
<class name="Institution" foo="bar"...>
<component name="serviceHours">
<component name="texts">
<list name="texts" table="institution_serviceTexts">
<key column="institution_id" foreign-key="fk_institution_id"/>
<list-index column="list_index"/>
<many-to-many entity-name="ServiceText" column="servicetext_id"
foreign-key="fk_servicetext_id"/>
</list>
</component>
</component>
</class>
the object model is as follows (shortened):
Code:
class Institution{
ServiceHours serviceHours;
// getters and setters
}
class ServiceHours{
ServiceTexts texts;
// getters and setters
}
class ServiceTexts{
List<ServiceText> texts;
// getters and setters
}
class ServiceText{
String type;
String value;
// getters and setters
}
thanks in advance 4 ur help!
joachim