Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2058 | es | 1 | <?xml version="1.0"?> |
2 | <!DOCTYPE hibernate-mapping PUBLIC |
||
3 | "-//Hibernate/Hibernate Mapping DTD//EN" |
||
4 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
||
5 | |||
6 | <hibernate-mapping> |
||
7 | <class name="pt.estgp.es.exemplos.hibernate.Pagina" table="pagina" abstract="true"> |
||
8 | <meta attribute="scope-class">public abstract</meta> |
||
9 | <meta attribute="extends">DomainObject</meta> |
||
10 | |||
11 | <id name="id" type="long"> |
||
12 | <generator class="native" /> |
||
13 | </id> |
||
14 | <discriminator column="discriminator"/> |
||
15 | <timestamp source="db" name="updateDate"/> |
||
16 | <property name="saveDate" type="timestamp"/> |
||
17 | <property name="nome" type="string" /> |
||
18 | <many-to-one name="dono" class="pt.estgp.es.exemplos.hibernate.User" column="user_id" outer-join="true" cascade="none"/> |
||
19 | |||
20 | <list name="seccoes" cascade="none"> |
||
21 | <key column="pagina_id"/> |
||
22 | <index column="i" /> |
||
23 | <one-to-many class="pt.estgp.es.exemplos.hibernate.Seccao" /> |
||
24 | </list> |
||
25 | <subclass name="pt.estgp.es.exemplos.hibernate.PaginaImpl" discriminator-value="PaginaImpl"> |
||
26 | <!--<subclass name="pt.estgp.es.exemplos.hibernate.PaginaAdmin">--> |
||
27 | <!--<meta attribute="scope-class">public abstract</meta>--> |
||
28 | <!--<property name="xtpo" type="string"/>--> |
||
29 | <!--<subclass name="pt.estgp.es.exemplos.hibernate.PaginaAdminImpl" discriminator-value="PaginaAdminImpl"--> |
||
30 | <!--</subclass>--> |
||
31 | |||
32 | </subclass> |
||
33 | </class> |
||
34 | </hibernate-mapping> |