From: <one...@us...> - 2003-01-28 13:03:05
|
Update of /cvsroot/hibernate/Hibernate2/doc/reference/src In directory sc8-pr-cvs1:/tmp/cvs-serv23810/reference/src Modified Files: basic_or_mapping.xml session_configuration.xml Log Message: documented new mapping attributes Index: basic_or_mapping.xml =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/doc/reference/src/basic_or_mapping.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** basic_or_mapping.xml 28 Jan 2003 12:15:51 -0000 1.5 --- basic_or_mapping.xml 28 Jan 2003 13:03:00 -0000 1.6 *************** *** 94,97 **** --- 94,98 ---- schema="owner" proxy="ProxyInterface" + dynamic-update="true|false" polymorphism="implicit|explicit" persister="PersisterClass" />]]></programlisting> *************** *** 139,142 **** --- 140,150 ---- <listitem> <para> + <literal>dynamic-update</literal> (optional, defaults to <literal>false</literal>): + Specifies that <literal>UPDATE</literal> SQL should be generated at runtime and + contain only those columns whose values have changed. + </para> + </listitem> + <listitem> + <para> <literal>polymorphism</literal> (optional, defaults to <literal>implicit</literal>): Determines whether implicit or explicit query polymorphism is used. *************** *** 596,600 **** name="propertyName" column="column_name" ! type="typename"/>]]></programlisting> <para> --- 604,610 ---- name="propertyName" column="column_name" ! type="typename" ! update="true|false" ! insert="true|false"/>]]></programlisting> <para> *************** *** 621,624 **** --- 631,643 ---- </para> </listitem> + <listitem> + <para> + <literal>update, insert</literal> (optional - defaults to <literal>true</literal>) + specifies that the mapped columns should be included in SQL <literal>UPDATE</literal> + and/or <literal>INSERT</literal> statements. Setting both to <literal>false</literal> + allows a pure "derived" property whose value is initialized from some other + property that maps to the same colum(s) or by a trigger or other application. + </para> + </listitem> </itemizedlist> *************** *** 676,684 **** <programlisting><![CDATA[<many-to-one ! name="propertyName" ! column="column_name" ! class="ClassName" ! cascade="all|none|save-update|delete" ! outer-join="true|false|auto"/>]]></programlisting> <para> --- 695,705 ---- <programlisting><![CDATA[<many-to-one ! name="propertyName" ! column="column_name" ! class="ClassName" ! cascade="all|none|save-update|delete" ! outer-join="true|false|auto" ! update="true|false" ! insert="true|false"/>]]></programlisting> <para> *************** *** 715,718 **** --- 736,748 ---- enables outer-join fetching for this association when <literal>hibernate.use_outer_join</literal> is set. + </para> + </listitem> + <listitem> + <para> + <literal>update, insert</literal> (optional - defaults to <literal>true</literal>) + specifies that the mapped columns should be included in SQL <literal>UPDATE</literal> + and/or <literal>INSERT</literal> statements. Setting both to <literal>false</literal> + allows a pure "derived" association whose value is initialized from some other + property that maps to the same colum(s) or by a trigger or other application. </para> </listitem> Index: session_configuration.xml =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/doc/reference/src/session_configuration.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** session_configuration.xml 26 Jan 2003 03:17:45 -0000 1.2 --- session_configuration.xml 28 Jan 2003 13:03:01 -0000 1.3 *************** *** 538,542 **** "-//Hibernate/Hibernate Configuration DTD//EN" ! "http://hibernate.sourceforge.net/hibernate-configuration.dtd"> <hibernate-configuration> --- 538,542 ---- "-//Hibernate/Hibernate Configuration DTD//EN" ! "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd"> <hibernate-configuration> *************** *** 545,549 **** <session-factory name="/jndi/name"> ! <!-- properties for this SessionFactory only --> <property name="connection.datasource">my/first/datasource</property> <property name="dialect">net.sf.hibernate.sql.MySQLDialect</property> --- 545,549 ---- <session-factory name="/jndi/name"> ! <!-- properties --> <property name="connection.datasource">my/first/datasource</property> <property name="dialect">net.sf.hibernate.sql.MySQLDialect</property> |