|
Set Foo.getSeconds() // returns a collection of FooSecond instances |
|
<set role="seconds"> <key column="id" type="string"> <generator class="uuid.hex"/> </key> <composite-element class="FooSecond"> <property name="firstName"/> <property name="lastName"/> </composite-element> </set> <class name="Foo" table="foo"> ... <collection name="seconds" column="seconds_id" role="seconds"/> </class> |
|
Foo |
|
|
id |
seconds_id |
|
Seconds |
||
|
id |
firstName |
lastName |