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