| Author |
Message |
|
|
Post subject: Hibernate Syncronizer still does not support all hibernate
Posted: Jul 20, 2004 - 11:28 AM
|
|

Joined: Mar 17, 2004
Posts: 10
Location: Willow Grove, PA
|
|
combinations.
The composite-element in the mapping below is completely ignored during generation. Is this supported by the plugin?
| Code: |
<class
name="Device"
table="device" dynamic-update="true"
>
<id name="id" type="integer" column="ID">
<generator class="native" />
</id>
<property name="hostname" type="string" length="255" not-null="true" />
<property name="description" type="string" />
<property name="fqdn" type="string" length="255" />
<property name="hwtype" type="string" />
<property name="hdaddr" type="string" />
<!-- associations -->
<many-to-one name="deviceType" column="devicetypeid" class="com.diamondip.netcontrol.model.DeviceType"/>
<!--- will remove masterBag, it was only a suggestion if you really wanted an id generated for the collection -->
<idbag name="Interfaces" lazy="true" table="dnszonemaster" >
<collection-id type="int" column="id">
<generator class="sequence"/>
</collection-id>
<key column="dnszoneid"/>
<composite-element class="DeviceInterface">
<many-to-one name="device" column="deviceid" class="Device" />
<property name="name" type="string" />
<property name="seqnum" type="int" />
<property name="hwtype" type="string" />
<property name="hdaddr" type="string" />
</composite-element>
</idbag>
</class>
|
Matt Payne[/code] |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 20, 2004 - 11:32 AM
|
|

Joined: Mar 17, 2004
Posts: 10
Location: Willow Grove, PA
|
|
However, if you do it inside a set, it works???
<set name="dnsServerLogCategorys" table="dnsserverlogcategory">
<key column="dnsserverid"/>
<composite-element class="CategoryChannel">
<many-to-one name="logChannel" class="LogChannel" column="logchannelid"/>
<many-to-one name="logCategoryDictionary" class="LogCategoryDictionary" column="categorydictionaryid"/>
</composite-element>
</set> |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 04, 2004 - 08:51 AM
|
|
|
|
Any word on this?
idbag with composite element??? |
|
|
| |
|
|
|
 |
|
|
| |