⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hibernate-mapping-2.0.dtd

📁 基于java的组态软件。使用了hibernate和spring技术
💻 DTD
📖 第 1 页 / 共 2 页
字号:
<!-- Hibernate Mapping DTD.<!DOCTYPE hibernate-mapping PUBLIC 	"-//Hibernate/Hibernate Mapping DTD 2.0//EN"	"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">An instance of this XML document may contain mappings for an arbitrary number of classes. The class mappings may contain associations to classesmapped in the same document or in another document. No class may be mapped more than once. Each document may also contain definitions of anarbitrary number of queries, and import declarations of arbitrary classes. --><!-- The document root. --><!ELEMENT hibernate-mapping (meta*, import*, (class|subclass|joined-subclass)*, query*, sql-query*)>  <!ATTLIST hibernate-mapping schema CDATA #IMPLIED>                            <!-- default: none -->  <!ATTLIST hibernate-mapping default-cascade (none|save-update|all) "none">  <!ATTLIST hibernate-mapping default-access CDATA "property">  <!ATTLIST hibernate-mapping auto-import (true|false) "true">  <!ATTLIST hibernate-mapping package CDATA #IMPLIED>                           <!-- default: none -->  <!-- An explicit query language "import" --><!ELEMENT import EMPTY>  <!ATTLIST import class CDATA #REQUIRED>  <!ATTLIST import rename CDATA #IMPLIED>  <!-- default: unqualified class name --><!-- Root of an entity class hierarchy. Entities have their own tables. --><!ELEMENT class (   meta*,  (cache|jcs-cache)?,  (id|composite-id),  discriminator?,  (version|timestamp)?,  (property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,   ((subclass*)|(joined-subclass*)))>  <!ATTLIST class name CDATA #REQUIRED>  <!ATTLIST class table CDATA #IMPLIED>                        <!-- default: unqualified classname -->  <!ATTLIST class schema CDATA #IMPLIED>                       <!-- default: none -->  <!ATTLIST class proxy CDATA #IMPLIED>                        <!-- default: no proxy interface -->  <!ATTLIST class discriminator-value CDATA #IMPLIED>          <!-- default: unqualified class name | none -->  <!ATTLIST class mutable (true|false) "true">  <!ATTLIST class polymorphism (implicit|explicit) "implicit">  <!ATTLIST class where CDATA #IMPLIED>                        <!-- default: none -->  <!ATTLIST class persister CDATA #IMPLIED>  <!ATTLIST class dynamic-update (true|false) "false">  <!ATTLIST class dynamic-insert (true|false) "false">  <!ATTLIST class batch-size CDATA "1">  <!ATTLIST class select-before-update (true|false) "false">  <!ATTLIST class optimistic-lock (none|version|dirty|all) "version">  <!ATTLIST class lazy (true|false) #IMPLIED>  <!ATTLIST class check CDATA #IMPLIED>                        <!-- default: none --><!-- Declares the id type, column and generation algorithm for an entity class.If a name attribut is given, the id is exposed to the application through the named property of the class. If not, the id is only exposed to the application via Session.getIdentifier() --><!ELEMENT id (meta*, column*, generator)>  <!ATTLIST id name CDATA #IMPLIED>  <!ATTLIST id access CDATA #IMPLIED>  <!ATTLIST id column CDATA #IMPLIED>  <!ATTLIST id type CDATA #IMPLIED>  <!ATTLIST id length CDATA #IMPLIED>  <!ATTLIST id unsaved-value CDATA "null">          <!-- any|none|null|0|-1|... --><!-- A composite key may be modelled by a java class with a property for each key column. The class must implement java.io.Serializable and reimplement equals() and hashCode(). --><!ELEMENT composite-id ( meta*, (key-property|key-many-to-one)+ )>  <!ATTLIST composite-id class CDATA #IMPLIED>  <!ATTLIST composite-id name CDATA #IMPLIED>  <!ATTLIST composite-id access CDATA #IMPLIED>  <!ATTLIST composite-id unsaved-value (any|none) "none"> <!-- Polymorphic data requires a column holding a class discriminator value. Thisvalue is not directly exposed to the application. --><!ELEMENT discriminator (column?)>  <!ATTLIST discriminator column CDATA #IMPLIED>   <!-- default: "class"|none -->  <!ATTLIST discriminator type CDATA "string">  <!ATTLIST discriminator not-null (true|false) "true">  <!ATTLIST discriminator length CDATA #IMPLIED>  <!ATTLIST discriminator force (true|false) "false">  <!ATTLIST discriminator insert (true|false) "true">  <!-- Versioned data requires a column holding a version number. This is exposed to theapplication through a property of the Java class. --><!ELEMENT version (meta*)>  <!ATTLIST version name CDATA #REQUIRED>  <!ATTLIST version access CDATA #IMPLIED>  <!ATTLIST version column CDATA #IMPLIED>  <!ATTLIST version type CDATA "integer">  <!ATTLIST version unsaved-value (null|negative|undefined) "undefined"><!ELEMENT timestamp (meta*)>  <!ATTLIST timestamp name CDATA #REQUIRED>  <!ATTLIST timestamp column CDATA #IMPLIED>  <!ATTLIST timestamp access CDATA #IMPLIED>  <!ATTLIST timestamp unsaved-value (null|undefined) "null"><!-- Subclass declarations are nested beneath the root class declaration to achievepolymorphic persistence. --><!ELEMENT subclass ( 	meta*,	(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*, 	subclass*)>  <!ATTLIST subclass name CDATA #REQUIRED>  <!ATTLIST subclass proxy CDATA #IMPLIED>                <!-- default: no proxy interface -->  <!ATTLIST subclass discriminator-value CDATA #IMPLIED>  <!-- default: unqualified class name | none -->  <!ATTLIST subclass dynamic-update (true|false) "false">  <!ATTLIST subclass dynamic-insert (true|false) "false">  <!ATTLIST subclass select-before-update (true|false) "false">  <!ATTLIST subclass extends CDATA #IMPLIED>              <!-- default: empty when a toplevel, otherwise the nearest class definition -->  <!ATTLIST subclass lazy (true|false) #IMPLIED>  <!ATTLIST subclass persister CDATA #IMPLIED><!-- Joined subclasses are used for the normalized table-per-subclass mapping strategy --><!ELEMENT joined-subclass ( 	meta*,	key,	(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*, 	joined-subclass*)>  <!ATTLIST joined-subclass name CDATA #REQUIRED>  <!ATTLIST joined-subclass proxy CDATA #IMPLIED>         <!-- default: no proxy interface -->  <!ATTLIST joined-subclass table CDATA #IMPLIED>         <!-- default: unqualified class name -->  <!ATTLIST joined-subclass schema CDATA #IMPLIED>  <!ATTLIST joined-subclass dynamic-update (true|false) "false">  <!ATTLIST joined-subclass dynamic-insert (true|false) "false">  <!ATTLIST joined-subclass select-before-update (true|false) "false">  <!ATTLIST joined-subclass extends CDATA #IMPLIED>       <!-- default: empty when a toplevel, otherwise the nearest class definition -->  <!ATTLIST joined-subclass lazy (true|false) #IMPLIED>  <!ATTLIST joined-subclass persister CDATA #IMPLIED>  <!ATTLIST joined-subclass check CDATA #IMPLIED>         <!-- default: none -->  <!-- Property of an entity class or component, component-element, composite-id, etc. JavaBeans style properties are mapped to table columns. --><!ELEMENT property (meta*,column*)>  <!ATTLIST property name CDATA #REQUIRED>  <!ATTLIST property access CDATA #IMPLIED>  <!ATTLIST property type CDATA #IMPLIED>  <!ATTLIST property column CDATA #IMPLIED>  <!ATTLIST property length CDATA #IMPLIED>  <!ATTLIST property not-null (true|false) "false">  <!ATTLIST property unique (true|false) "false">  <!ATTLIST property update (true|false) "true">   <!-- only supported for properties of a class (not component) -->  <!ATTLIST property insert (true|false) "true">   <!-- only supported for properties of a class (not component) -->  <!ATTLIST property formula CDATA #IMPLIED>       <!-- only supported for properties of a class (not component) -->  <!ATTLIST property index CDATA #IMPLIED>         <!-- include the columns spanned by this property in an index --><!-- Declares an association between two entities (Or from a component, component element,etc. to an entity). --><!ELEMENT many-to-one (meta*,column*)>  <!ATTLIST many-to-one name CDATA #REQUIRED>  <!ATTLIST many-to-one access CDATA #IMPLIED>  <!ATTLIST many-to-one class CDATA #IMPLIED>  <!ATTLIST many-to-one column CDATA #IMPLIED>  <!ATTLIST many-to-one not-null (true|false) "false">  <!ATTLIST many-to-one unique (true|false) "false">  <!ATTLIST many-to-one cascade (none|all|save-update|delete) #IMPLIED>    <!-- default: none -->  <!ATTLIST many-to-one outer-join (true|false|auto) "auto">  <!ATTLIST many-to-one update (true|false) "true">   <!-- only supported for many-to-one of a class (not component) -->  <!ATTLIST many-to-one insert (true|false) "true">   <!-- only supported for many-to-one of a class (not component) -->  <!ATTLIST many-to-one foreign-key CDATA #IMPLIED>  <!ATTLIST many-to-one property-ref CDATA #IMPLIED>  <!ATTLIST many-to-one index CDATA #IMPLIED>         <!-- include the columns spanned by this association in an index -->    <!-- Declares a one-to-one association between two entities (Or from a component, component element, etc. to an entity). --><!ELEMENT one-to-one (meta*)>  <!ATTLIST one-to-one name CDATA #REQUIRED>  <!ATTLIST one-to-one access CDATA #IMPLIED>  <!ATTLIST one-to-one class CDATA #IMPLIED>  <!ATTLIST one-to-one cascade (none|all|save-update|delete) #IMPLIED>     <!-- default: none -->  <!ATTLIST one-to-one outer-join (true|false|auto) "auto">  <!ATTLIST one-to-one constrained (true|false) "false">  <!ATTLIST one-to-one foreign-key CDATA #IMPLIED>  <!ATTLIST one-to-one property-ref CDATA #IMPLIED><!-- A property embedded in a composite identifier or map index (always not-null). --><!ELEMENT key-property (meta*,column*)>  <!ATTLIST key-property name CDATA #REQUIRED>  <!ATTLIST key-property access CDATA #IMPLIED>  <!ATTLIST key-property type CDATA #IMPLIED>  <!ATTLIST key-property column CDATA #IMPLIED>  <!ATTLIST key-property length CDATA #IMPLIED><!-- A many-to-one association embedded in a composite identifier or map index (always not-null, never cascade). --><!ELEMENT key-many-to-one (meta*,column*)>  <!ATTLIST key-many-to-one name CDATA #REQUIRED>  <!ATTLIST key-many-to-one access CDATA #IMPLIED>  <!ATTLIST key-many-to-one class CDATA #IMPLIED>  <!ATTLIST key-many-to-one column CDATA #IMPLIED>  <!ATTLIST key-many-to-one foreign-key CDATA #IMPLIED><!-- An "any" association is a polymorphic association to any table withthe given identifier type. The first listed column is a VARCHAR column holding the name of the class (for that row). --><!ELEMENT any (meta*,meta-value*,column,column+)>  <!ATTLIST any id-type CDATA #REQUIRED>  <!ATTLIST any meta-type CDATA #IMPLIED>       <!--- default: Hibernate.CLASS -->  <!ATTLIST any name CDATA #REQUIRED>  <!ATTLIST any access CDATA #IMPLIED>  <!ATTLIST any insert (true|false) "true">			<!-- only supported for many-to-one of a class (not component) -->  <!ATTLIST any update (true|false) "true">			<!-- only supported for many-to-one of a class (not component) -->  <!ATTLIST any cascade (none|save-update|all) "none">  <!ATTLIST any index CDATA #IMPLIED>          <!-- include the columns spanned by this association in an index --><!ELEMENT meta-value EMPTY>  <!ATTLIST meta-value value CDATA #REQUIRED>  <!ATTLIST meta-value class CDATA #REQUIRED><!-- A component is a user-defined class, persisted along with its containing entityto the table of the entity class. JavaBeans style properties of the component aremapped to columns of the table of the containing entity. A null component referenceis mapped to null values in all columns and vice versa. Components do not supportshared reference semantics. --><!ELEMENT component (  meta*,  parent?,  (property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|array|primitive-array)*)>  <!ATTLIST component class CDATA #IMPLIED>  <!ATTLIST component name CDATA #REQUIRED>  <!ATTLIST component access CDATA #IMPLIED>  <!ATTLIST component update (true|false) "true">  <!ATTLIST component insert (true|false) "true"><!ELEMENT dynamic-component (  (property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|array|primitive-array)*)>  <!ATTLIST dynamic-component name CDATA #REQUIRED>  <!ATTLIST dynamic-component access CDATA #IMPLIED>  <!ATTLIST dynamic-component update (true|false) "true">  <!ATTLIST dynamic-component insert (true|false) "true"><!-- The parent element maps a property of the component class as a pointer back tothe owning entity. --><!ELEMENT parent EMPTY>  <!ATTLIST parent name CDATA #REQUIRED><!-- Collection declarations nested inside a class declaration indicate a foreign key relationship from the collection table to the enclosing class. --><!ELEMENT map (	meta*,	(cache|jcs-cache)?,	key, 	(index|composite-index|index-many-to-many|index-many-to-any), 	(element|one-to-many|many-to-many|composite-element|many-to-any))>  <!ATTLIST map name CDATA #REQUIRED>  <!ATTLIST map access CDATA #IMPLIED>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -