small improvs

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6902 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gavin King 2005-05-25 03:07:42 +00:00
parent 24f3e76c9a
commit fcb33ad8c3
2 changed files with 22 additions and 5 deletions

View File

@ -1196,6 +1196,11 @@
not-null="true|false" not-null="true|false"
optimistic-lock="true|false" optimistic-lock="true|false"
node="element-name|@attribute-name|element/@attribute|." node="element-name|@attribute-name|element/@attribute|."
index="index_name"
unique_key="unique_key_id"
length="L"
precision="P"
precision="S"
/>]]></programlisting> />]]></programlisting>
<calloutlist> <calloutlist>
<callout arearefs="property1"> <callout arearefs="property1">
@ -1232,13 +1237,13 @@
mapping of their own. mapping of their own.
</para> </para>
</callout> </callout>
<callout arearefs="property7"> <callout arearefs="property7">
<para> <para>
<literal>access</literal> (optional - defaults to <literal>property</literal>): The <literal>access</literal> (optional - defaults to <literal>property</literal>): The
strategy Hibernate should use for accessing the property value. strategy Hibernate should use for accessing the property value.
</para> </para>
</callout> </callout>
<callout arearefs="property8"> <callout arearefs="property8">
<para> <para>
<literal>lazy</literal> (optional - defaults to <literal>false</literal>): Specifies <literal>lazy</literal> (optional - defaults to <literal>false</literal>): Specifies
that this property should be fetched lazily when the instance variable is first that this property should be fetched lazily when the instance variable is first
@ -1369,6 +1374,7 @@
<area id="manytoone13" coords="14 70"/> <area id="manytoone13" coords="14 70"/>
<area id="manytoone14" coords="15 70"/> <area id="manytoone14" coords="15 70"/>
<area id="manytoone15" coords="16 70"/> <area id="manytoone15" coords="16 70"/>
<area id="manytoone16" coords="17 70"/>
</areaspec> </areaspec>
<programlisting><![CDATA[<many-to-one <programlisting><![CDATA[<many-to-one
name="propertyName" name="propertyName"
@ -1386,8 +1392,12 @@
lazy="true|proxy|false" lazy="true|proxy|false"
not-found="ignore|exception" not-found="ignore|exception"
entity-name="EntityName" entity-name="EntityName"
formul="arbitrary SQL expression"
node="element-name|@attribute-name|element/@attribute|." node="element-name|@attribute-name|element/@attribute|."
embed-xml="true|false" embed-xml="true|false"
index="index_name"
unique_key="unique_key_id"
foreign-key="foreign_key_name"
/>]]></programlisting> />]]></programlisting>
<calloutlist> <calloutlist>
<callout arearefs="manytoone1"> <callout arearefs="manytoone1">
@ -1487,6 +1497,12 @@
</para> </para>
</callout> </callout>
</calloutlist> </calloutlist>
<callout arearefs="manytoone16">
<para>
<literal>formula</literal> (optional): an SQL expression that defines the value for a
<emphasis>computed</emphasis> foreign key.
</para>
</callout>
</programlistingco> </programlistingco>
<para> <para>
@ -1569,6 +1585,7 @@
entity-name="EntityName" entity-name="EntityName"
node="element-name|@attribute-name|element/@attribute|." node="element-name|@attribute-name|element/@attribute|."
embed-xml="true|false" embed-xml="true|false"
foreign-key="foreign_key_name"
/>]]></programlisting> />]]></programlisting>
<calloutlist> <calloutlist>
<callout arearefs="onetoone1"> <callout arearefs="onetoone1">

View File

@ -427,9 +427,9 @@ kittens = cat.getKittens(); // Okay, kittens collection is a Set
column="column_name" column="column_name"
formula="any SQL expression" formula="any SQL expression"
type="typename" type="typename"
length="N" length="L"
precision="N" precision="P"
scale="N" scale="S"
not-null="true|false" not-null="true|false"
unique="true|false" unique="true|false"
node="element-name" node="element-name"