Rev 146 | Go to most recent revision | Details | 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.Course" table="course" abstract="true"> |
||
8 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainObject</meta> |
||
9 | <meta attribute="scope-class">public abstract</meta> |
||
10 | <id name="id" type="long"> |
||
11 | <generator class="native"/> |
||
12 | </id> |
||
13 | <discriminator column="discrimitator"/> |
||
14 | <timestamp name="updateDate" unsaved-value="null"/> |
||
15 | <property name="saveDate" type="timestamp"/> |
||
16 | <property name="name" type="string"/> |
||
17 | <property name="description" type="text"/> |
||
18 | <property name="code" type="string"/> |
||
19 | <property name="externalSiteServer" type="string"/> |
||
20 | <property name="externalSitePath" type="string"/> |
||
21 | <many-to-one name="coordinator" class="pt.estgp.estgweb.domain.User" outer-join="false" lazy="proxy"/> |
||
22 | <set name="users" order-by="user.name asc" lazy="true"> |
||
23 | <key column="course_id"/> |
||
24 | <one-to-many class="pt.estgp.estgweb.domain.CourseUserAssociation"/> |
||
25 | </set> |
||
26 | <subclass name="pt.estgp.estgweb.domain.CourseImpl" discriminator-value="CourseImpl"/> |
||
27 | </class> |
||
28 | </hibernate-mapping> |