-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate one to one mapping not updating child
PostPosted: Mon Mar 25, 2013 9:35 pm 
Newbie

Joined: Mon Mar 25, 2013 9:30 pm
Posts: 2
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 4 Mar, 2013 10:21:58 AM by Hibernate Tools 3.3.0.GA -->
<hibernate-mapping>

<class name="com.project.dummy.gwt.shared.tiles.TileConfiguration" table="dummy_TILE_CONFIGURATION">
<id name="tileId" column="TILE_ID">
<generator class="native"/>
</id>
<property name="title" column="TITLE" />
<property name="type" column="TYPE" />
<property name="imgUrl" column="IMG_URL" />
<!-- <property name="viewConfiguration" column="VIEW_CONFIGURATION_ID" length="1024"/> -->

<one-to-one name="gridDashView" class="com.project.dummy.gwt.shared.tiles.grid.GridDashboardTileViewConfiguration" property-ref="tileConfigs" cascade="save-update" constrained="true" ></one-to-one>


</class>

<class name="com.project.dummy.gwt.shared.tiles.grid.GridDashboardTileViewConfiguration" table="GRID_TILE_VIEW_CON" >
<id name="tileId" column="ID">
<generator class="native"/>
</id>

<many-to-one name="tileConfigs" class="com.project.dummy.gwt.shared.tiles.TileConfiguration" cascade="all" />

<set name="accounts" table="GRID_TILE_VIEW_CONFIG" cascade="all" >
<key column="REC_ID" not-null="true" />
<one-to-many class="com.project.dummy.gwt.shared.tiles.grid.GridFieldConfiguration" />
</set>

</class>

<class name="com.project.dummy.gwt.shared.tiles.grid.GridFieldConfiguration" table="GRID_TILE_VIEW_CONFIG" dynamic-insert="true" dynamic-update="true">
<id name="id">
<generator class="native"/>
</id>
<property name="length" column="LENGTH" />
<property name="displayFieldId" column="DISPLAY_FIELD_ID" />
<property name="sortId" column="SORT_ID" />
<property name="dataType" column="DATA_TYPE" />
<property name="aggregate" column="Aggregate" />
<property name="stringFormat" column="STRING_FORMAT" />
<list name="stringValues" table="GRID_TILE_VIEW_STRING" >
<key column="REC_ID" />
<list-index column="REC_ID2"></list-index>
<element column="STRING_VALUE" type="string"></element>
</list>

</class>

</hibernate-mapping>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.