Rev 2019 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2009 | es | 1 | <?xml version="1.0"?> |
2 | <!DOCTYPE hibernate-mapping PUBLIC |
||
2049 | es | 3 | "-//Hibernate/Hibernate Mapping DTD//EN" |
4 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
||
2009 | es | 5 | |
6 | <hibernate-mapping> |
||
2018 | es | 7 | <class name="pt.estgp.es.exemplos.hibernate.Seccao" table="seccao"> |
2009 | es | 8 | <meta attribute="scope-class">public abstract</meta> |
9 | <meta attribute="extends">DomainObject</meta> |
||
10 | <id name="id" type="long"> |
||
11 | <generator class="native" /> |
||
12 | </id> |
||
13 | <discriminator column="discriminator"/> |
||
14 | <timestamp source="db" name="updateDate"/> |
||
15 | <property name="saveDate" type="timestamp"/> |
||
16 | <property name="titulo" type="string" /> |
||
2018 | es | 17 | <many-to-one name="pagina" class="pt.estgp.es.exemplos.hibernate.Pagina" column="pagina_id" outer-join="true" cascade="none"/> |
2009 | es | 18 | |
2049 | es | 19 | |
2009 | es | 20 | <subclass name="pt.estgp.es.exemplos.hibernate.SeccaoImpl" discriminator-value="SeccaoImpl"/> |
21 | </class> |
||
22 | </hibernate-mapping> |