<hibernate-mapping default-cascade="none">

    <class name="foo.bar.A" table="A" dynamic-insert="false" 
dynamic-update="false">

        <cache usage="read-write" />

        <id name="id" type="java.lang.Long" unsaved-value="null">

            <column name="ID" sql-type="BIGINT"/>

            <generator class="native">

            </generator>

        </id>

        <property name="name" type="java.lang.String">

            <column name="NAME" not-null="false" unique="false" 
sql-type="VARCHAR(255) BINARY"/>

        </property>

        <property name="description" type="java.lang.String">

            <column name="DESCRIPTION" not-null="false" unique="false" 
sql-type="VARCHAR(255) BINARY"/>

        </property>

        

        <many-to-one name="myAssociation" class="foo.bar.B" fetch="select" 
cascade="save-update" foreign-key="A_FKC">

            <column name="B_FK" not-null="false" sql-type="BIGINT"/>

        </many-to-one>
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=2947#2947
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to