| 1 | <?xml version="1.0"?> |
|---|
| 2 | <!DOCTYPE hibernate-mapping PUBLIC |
|---|
| 3 | "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
|---|
| 4 | "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|---|
| 5 | |
|---|
| 6 | <hibernate-mapping> |
|---|
| 7 | |
|---|
| 8 | <class name="uk.ac.cardiff.model.event.Event" table="event" |
|---|
| 9 | dynamic-update="true" dynamic-insert="false" > |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | <id name="persistantId" column="persistantId" type="long" |
|---|
| 13 | unsaved-value="0"> |
|---|
| 14 | <!-- <generator class="native"> |
|---|
| 15 | <param name="sequence">hib_entity_seq</param> |
|---|
| 16 | </generator> --> |
|---|
| 17 | <generator class="hilo"> |
|---|
| 18 | |
|---|
| 19 | </generator> |
|---|
| 20 | </id> |
|---|
| 21 | |
|---|
| 22 | <property name="eventTime" |
|---|
| 23 | type="org.joda.time.contrib.hibernate.PersistentDateTime" update="true" |
|---|
| 24 | insert="true" not-null="false" index="dt_index" > |
|---|
| 25 | <column name="eventtime"></column> |
|---|
| 26 | </property> |
|---|
| 27 | |
|---|
| 28 | <!--<property name="date" |
|---|
| 29 | type="timestamp" update="true" |
|---|
| 30 | insert="true" not-null="false" index="dt_index" > |
|---|
| 31 | <column name="eventtime"></column> |
|---|
| 32 | </property> |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | --><property name="serviceHost" type="string" update="true" |
|---|
| 36 | insert="true" column="serviceHost" not-null="false" index="requesthost_indx" /> |
|---|
| 37 | <property name="resourceHost" type="string" update="true" |
|---|
| 38 | insert="true" column="resourceHost" not-null="false" /> |
|---|
| 39 | <property name="serviceId" type="string" update="true" |
|---|
| 40 | insert="true" column="serviceId" not-null="false" index="serviceid_indx" /> |
|---|
| 41 | <property name="resourceId" type="string" update="true" |
|---|
| 42 | insert="true" column="resourceId" not-null="false" /> |
|---|
| 43 | <property name="eventId" type="integer" update="true" insert="true" |
|---|
| 44 | column="eventId" not-null="true" index="eventid_indx"/> |
|---|
| 45 | <property name="eventType" type="string" update="true" |
|---|
| 46 | insert="true" column="eventType" not-null="false" /> |
|---|
| 47 | |
|---|
| 48 | <property name="resourceIdCategory" type="integer" update="true" |
|---|
| 49 | insert="true" column="resourceIdCategory" not-null="false" /> |
|---|
| 50 | |
|---|
| 51 | <component name="eventMetadata"> |
|---|
| 52 | <property name="entityId" type="string" update="true" insert="true" |
|---|
| 53 | column="entityId" index="entityId_index" /> |
|---|
| 54 | <property name="serviceName" type="string" update="true" |
|---|
| 55 | insert="true" column="serviceName" index="serviceName_indx" /> |
|---|
| 56 | <property name="organisationName" type="string" update="true" |
|---|
| 57 | insert="true" column="organisationName" index="organisationName_indx" /> |
|---|
| 58 | </component> |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | </class> |
|---|
| 64 | |
|---|
| 65 | <union-subclass name="uk.ac.cardiff.model.event.AuthenticationEvent" extends="uk.ac.cardiff.model.event.Event"> |
|---|
| 66 | |
|---|
| 67 | <property name="authenticationType" column="authenticationType" |
|---|
| 68 | type="string" /> |
|---|
| 69 | <property name="principalName" column="principalName" type="string" |
|---|
| 70 | index="principalname_indx" /> |
|---|
| 71 | |
|---|
| 72 | <component name="principalInformation"> |
|---|
| 73 | <property name="school" type="string" update="true" insert="true" |
|---|
| 74 | column="school" index="school_index" /> |
|---|
| 75 | <property name="affiliation" type="string" update="true" |
|---|
| 76 | insert="true" column="affiliation" index="affiliation_indx" /> |
|---|
| 77 | </component> |
|---|
| 78 | |
|---|
| 79 | </union-subclass> |
|---|
| 80 | |
|---|
| 81 | <union-subclass extends="uk.ac.cardiff.model.event.AuthenticationEvent" |
|---|
| 82 | name="uk.ac.cardiff.model.event.ShibbolethIdpAuthenticationEvent" > |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | <property name="requestId" column="requestID" type="string" /> |
|---|
| 86 | <property name="messageProfileId" column="messageProfileId" |
|---|
| 87 | type="string" /> |
|---|
| 88 | <property name="responseBinding" column="responseBinding" |
|---|
| 89 | type="string" /> |
|---|
| 90 | <property name="requestBinding" column="requestBinding" type="string" /> |
|---|
| 91 | <property name="releasedAttributes" column="releasedAttributes" |
|---|
| 92 | type="uk.ac.cardiff.model.hibernate.types.CommaDelimStringToListUserType" /> |
|---|
| 93 | <property name="assertionId" column="assertionId" |
|---|
| 94 | type="uk.ac.cardiff.model.hibernate.types.CommaDelimStringToListUserType" /> |
|---|
| 95 | <property name="nameIdentifier" column="nameIdentifier" type="string" /> |
|---|
| 96 | <property name="responseId" column="responseId" type="string" /> |
|---|
| 97 | <property name="hashCode" column="current_hashCode" type="integer" |
|---|
| 98 | index="hashcode_indx" /> |
|---|
| 99 | </union-subclass> |
|---|
| 100 | |
|---|
| 101 | <union-subclass extends="uk.ac.cardiff.model.event.AuthenticationEvent" |
|---|
| 102 | name="uk.ac.cardiff.model.event.EzproxyAuthenticationEvent"> |
|---|
| 103 | |
|---|
| 104 | <property name="requesterIp" column="requesterIp" type="string" /> |
|---|
| 105 | <property name="sessionId" column="sessionId" type="string" /> |
|---|
| 106 | <property name="hashCode" column="current_hashCode" type="integer" |
|---|
| 107 | index="hashcode_indx" /> |
|---|
| 108 | |
|---|
| 109 | </union-subclass> |
|---|
| 110 | |
|---|
| 111 | |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | </hibernate-mapping> |
|---|