Rev 163 | Rev 976 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | fvelez | 1 | <?xml version="1.0"?> |
2 | <!DOCTYPE hibernate-mapping |
||
3 | PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
||
4 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
||
5 | |||
6 | <hibernate-mapping> |
||
7 | <class name="pt.estgp.estgweb.domain.UserSession" table="user_session" abstract="true"> |
||
146 | jmachado | 8 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
1 | fvelez | 9 | <meta attribute="scope-class">public abstract</meta> |
10 | <id name="cookie" type="string" length="150"> |
||
11 | <generator class="assigned"/> |
||
12 | </id> |
||
13 | <discriminator column="discrimitator"/> |
||
581 | jmachado | 14 | <property name="updateDate" type="timestamp"/> |
1 | fvelez | 15 | <property name="saveDate" type="timestamp"/> |
16 | <property name="ipAddress" type="string"/> |
||
17 | <property name="language" type="string"/> |
||
18 | <property name="name" type="string"/> |
||
19 | <property name="username" type="string"/> |
||
163 | jmachado | 20 | <many-to-one name="user" class="pt.estgp.estgweb.domain.User" outer-join="true" lazy="false"/> |
31 | jmachado | 21 | <set name="objects" cascade="all" inverse="true"><!--lazy="true">--> |
22 | <key column="cookie"/> |
||
1 | fvelez | 23 | <one-to-many class="pt.estgp.estgweb.domain.SessionObject"/> |
24 | </set> |
||
25 | <subclass name="pt.estgp.estgweb.domain.UserSessionImpl" discriminator-value="UserSessionImpl"/> |
||
26 | </class> |
||
27 | </hibernate-mapping> |