Rev 163 | Rev 202 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
110 | susana | 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.CourseUnit" table="courseUnit" abstract="true"> |
||
146 | jmachado | 8 | <meta attribute="extends">pt.estgp.estgweb.domain.DomainSerializableObject</meta> |
110 | susana | 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"/> |
||
163 | jmachado | 16 | <property name="semestre" type="string"/> |
110 | susana | 17 | <property name="name" type="string"/> |
18 | <property name="code" type="string"/> |
||
19 | <property name="courseCode" type="string"/> |
||
20 | <property name="courseName" type="string" /> |
||
21 | <property name="courseYear" type="string" /> |
||
22 | <property name="institutionCode" type="string" /> |
||
23 | <property name="status" type="boolean" /> |
||
163 | jmachado | 24 | <many-to-one name="course" class="pt.estgp.estgweb.domain.Course" lazy="false" outer-join="true"/> |
180 | jmachado | 25 | <set name="teachers" lazy="true" table="teachedunits"> |
26 | <key column="courseUnitId"/> |
||
27 | <many-to-many class="pt.estgp.estgweb.domain.TeacherImpl" column="studentId"/> |
||
28 | </set> |
||
29 | <set name="students" lazy="true" table="subscribedunits"> |
||
30 | <key column="courseUnitId"/> |
||
31 | <many-to-many class="pt.estgp.estgweb.domain.StudentImpl" column="studentId"/> |
||
32 | </set> |
||
110 | susana | 33 | <subclass name="pt.estgp.estgweb.domain.CourseUnitImpl" discriminator-value="CourseUnitImpl"/> |
34 | </class> |
||
35 | </hibernate-mapping> |