^1640764605591
@
sname
property
slabel
property
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
sid
property
  @/@name
  sname
  name
  slabel
  name
  sdescription
  属性的名字,以小写字母开头。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  name
  @/@column
  sname
  column
  slabel
  column
  sdescription
  <p>对应的数据库字段名。 也可以通过嵌套的<tt class="literal"><font face="新宋体">&lt;column&gt;</font></tt>元素指定。</p>
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  column
  @/@type
  sname
  type
  slabel
  type
  sextends
  xworker.hibernate.hibernate-mapping-nodes.type/@name
  sinputtype
  inputSelect
  ssize
  40
  scolspan
  2
  sshowLabel
  true
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
一个Hibernate类型的名字。<br /><br />
<p><span class="emphasis"><em>typename</em></span>可以是如下几种： </p>
<div class="orderedlist">
<ol type="1" compact="compact">
    <li>
    <p>Hibernate基础类型之一（比如：<tt class="literal"><font face="新宋体">integer, string, character,date, timestamp, float, binary, serializable, object, blob</font></tt>）。 </p>
    </li>
    <li>
    <p>一个Java类的名字，这个类属于一种默认基础类型 (比如： <tt class="literal"><font face="新宋体">int, float,char, java.lang.String, java.util.Date, java.lang.Integer, java.sql.Clob</font></tt>)。 </p>
    </li>
    <li>
    <p>一个可以序列化的Java类的名字。 </p>
    </li>
    <li>
    <p>一个自定义类型的类的名字。（比如： <tt class="literal"><font face="新宋体">com.illflow.type.MyCustomType</font></tt>)。 </p>
    </li>
</ol>
</div>
<p>如果你没有指定类型，Hibernarte会使用反射来得到这个名字的属性，以此来猜测正确的Hibernate类型。 Hibernate会按照规则2,3,4的顺序对属性读取器(getter方法）的返回类进行解释。然而，这还不够。 在某些情况下你仍然需要<tt class="literal"><font face="新宋体">type</font></tt>属性。（比如，为了区别<tt class="literal"><font face="新宋体">Hibernate.DATE</font></tt> 和<tt class="literal"><font face="新宋体">Hibernate.TIMESTAMP</font></tt>,或者为了指定一个自定义类型。） </p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  type
  @/@length
  sname
  length
  slabel
  length
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  length
  @/@insert
  sname
  insert
  slabel
  insert
  sinputtype
  select
  sdescription
  表明用于<tt class="literal"><font face="新宋体">UPDATE</font></tt> 和/或 <tt class="literal"><font face="新宋体">INSERT</font></tt> 的SQL语句中是否包含这个被映射了的字段。这二者如果都设置为<tt class="literal"><font face="新宋体">false</font></tt> 则表明这是一个&ldquo;外源性（derived）&rdquo;的属性，它的值来源于映射到同一个（或多个） 字段的某些其他属性，或者通过一个trigger(触发器）或其他程序。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  insert
    @/@insert/@true
    sname
    true
    slabel
    true
    svalue
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    true
    @/@insert/@false
    sname
    false
    slabel
    false
    svalue
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    false
  @/@update
  sname
  update
  slabel
  update
  sinputtype
  select
  sdescription
  表明用于<tt class="literal"><font face="新宋体">UPDATE</font></tt> 和/或 <tt class="literal"><font face="新宋体">INSERT</font></tt> 的SQL语句中是否包含这个被映射了的字段。这二者如果都设置为<tt class="literal"><font face="新宋体">false</font></tt> 则表明这是一个&ldquo;外源性（derived）&rdquo;的属性，它的值来源于映射到同一个（或多个） 字段的某些其他属性，或者通过一个trigger(触发器）或其他程序。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  update
    @/@update/@true
    sname
    true
    slabel
    true
    svalue
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    true
    @/@update/@false
    sname
    false
    slabel
    false
    svalue
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    false
  @/@unique
  sname
  unique
  slabel
  unique
  sinputtype
  select
  sdefault
  false
  sdescription
  使用DDL为该字段添加唯一的约束。 此外，这也可以用作<tt class="literal"><font face="新宋体">property-ref</font></tt>的目标属性。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  unique
    @/@unique/@true
    sname
    true
    slabel
    true
    svalue
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    true
    @/@unique/@false
    sname
    false
    slabel
    false
    svalue
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    false
  @/@formula
  sname
  formula
  slabel
  formula
  sinputtype
  textarea
  scolspan
  2
  sinputattrs
  codeName= codeType= wrap=false fillBoth=true cols= rows=80
  sreadOnly
  false
  sinheritDescription
  false
  Sdescription
#$@text#$@
一个SQL表达式，定义了这个<span class="emphasis"><em>计算 （computed）</em></span> 属性的值。计算属性没有和它对应的数据库字段。<br /><br />衍生属性（derive propertie）是一个特别强大的特征。这些属性应该定义为只读，属性值在装载时计算生成。 你用一个SQL表达式生成计算的结果，它会在这个实例转载时翻译成一个SQL查询的<tt class="literal"><font face="新宋体">SELECT</font></tt> 子查询语句。<br /><br />
<pre class="programlisting">&lt;property name=&quot;totalPrice&quot;
    formula=&quot;( SELECT SUM (li.quantity*p.price) FROM LineItem li, Product p
                WHERE li.productId = p.productId
                AND li.customerId = customerId
                AND li.orderNumber = orderNumber )&quot;/&gt;</pre>
<p>注意，你可以使用实体自己的表，而不用为这个特别的列定义别名（ 上面例子中的<tt class="literal"><font face="新宋体">customerId</font></tt>）。同时注意，如果你不喜欢使用属性， 你可以使用嵌套的<tt class="literal"><font face="新宋体">&lt;formula&gt;</font></tt>映射元素。</p>
#$@text#$@
  svalidateAllowBlank
  true
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  formula
  @/@access
  sname
  access
  slabel
  access
  sdescription
  Hibernate用来访问属性值的策略。<br /><br /><font face="新宋体">access</font>属性用来让你控制Hibernate如何在运行时访问属性。在默认情况下， Hibernate会使用属性的get/set方法对（pair）。如果你指明<tt class="literal"><font face="新宋体">access=&quot;attribute&quot;</font></tt>, Hibernate会忽略get/set方法对，直接使用反射来访问成员变量。你也可以指定你自己的策略， 这就需要你自己实现<tt class="literal"><font face="新宋体">org.hibernate.property.PropertyAccessor</font></tt>接口， 再在access中设置你自定义策略类的名字。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  access
  @/@unique-key
  sname
  unique-key
  slabel
  unique-key
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  unique-key
  @/@index
  sname
  index
  slabel
  index
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  index
  @/@optimistic-lock
  sname
  optimistic-lock
  slabel
  optimistic-lock
  sinputtype
  select
  sdefault
  true
  sdescription
  指定这个属性在做更新时是否需要获得乐观锁定（optimistic lock）。 换句话说，它决定这个属性发生脏数据时版本（version）的值是否增长。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  optimistic-lock
    @/@optimistic-lock/@true
    sname
    true
    slabel
    true
    svalue
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    true
    @/@optimistic-lock/@false
    sname
    false
    slabel
    false
    svalue
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    false
  @/@node
  sname
  node
  slabel
  node
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  node
  @/@lazy
  sname
  lazy
  slabel
  lazy
  sinputtype
  select
  sdefault
  false
  sdescription
  指定实例变量第一次被访问时，这个属性是否延迟抓取（fetched lazily）（ 需要运行时字节码增强）。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  lazy
    @/@lazy/@true
    sname
    true
    slabel
    true
    svalue
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    true
    @/@lazy/@false
    sname
    false
    slabel
    false
    svalue
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    false
  @/@precision
  sname
  precision
  slabel
  precision
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  precision
  @/@not-null
  sname
  not-null
  slabel
  not-null
  sinputtype
  select
  sdescription
  使用DDL为该字段添加可否为空（nullability）的约束。
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  not-null
    @/@not-null/@true
    sname
    true
    slabel
    true
    svalue
    true
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    true
    @/@not-null/@false
    sname
    false
    slabel
    false
    svalue
    false
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    false
  @/@generated
  sname
  generated
  slabel
  generated
  sinputtype
  select
  sdefault
  never
  sdescription
  Specifies that this property value is actually generated by the database.
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  generated
    @/@generated/@never
    sname
    never
    slabel
    never
    svalue
    never
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    never
    @/@generated/@insert
    sname
    insert
    slabel
    insert
    svalue
    insert
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    insert
    @/@generated/@always
    sname
    always
    slabel
    always
    svalue
    always
    sdescriptors
    xworker.lang.MetaDescriptor3/@attribute/@value
    sid
    always
  @/@scale
  sname
  scale
  slabel
  scale
  LvalidateOnBlur
  false
  LallowDecimals
  false
  LallowNegative
  false
  sdescriptors
  xworker.lang.MetaDescriptor3/@attribute
  sid
  scale
  @/@meta
  sname
  meta
  slabel
  meta
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.hibernate.hibernate-mapping-nodes.meta
  smany
  true
  seditCols
  2
  sinitialization
  false
  sid
  meta
  @/@column1
  sname
  column
  slabel
  column
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.hibernate.hibernate-mapping-nodes.column
  smany
  true
  seditCols
  2
  sinitialization
  false
  sid
  column1
  @/@formula1
  sname
  formula
  slabel
  formula
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.hibernate.hibernate-mapping-nodes.formula
  smany
  true
  seditCols
  2
  sinitialization
  false
  sid
  formula1
  @/@type1
  sname
  type
  slabel
  type
  sdescriptors
  xworker.lang.MetaDescriptor3/@thing
  sextends
  xworker.hibernate.hibernate-mapping-nodes.type
  smany
  true
  seditCols
  2
  sinitialization
  false
  sid
  type1
