Rev 2018 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2009 | 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.UserSession" table="userSession"> |
||
8 | <meta attribute="scope-class">public abstract</meta> |
||
9 | <meta attribute="extends">DomainObject</meta> |
||
10 | <id name="cookie" type="string"> |
||
11 | <generator class="assigned" /> |
||
12 | </id> |
||
13 | <discriminator column="discriminator"/> |
||
14 | <timestamp source="db" name="updateDate"/> |
||
15 | <property name="saveDate" type="timestamp"/> |
||
16 | <many-to-one name="user" class="pt.estgp.es.exemplos.hibernate.User"></many-to-one> |
||
17 | <subclass name="pt.estgp.es.exemplos.hibernate.UserSessionImpl" discriminator-value="UserSessionImpl"/> |
||
18 | </class> |
||
19 | </hibernate-mapping> |
||
20 |