| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
<!DOCTYPE hibernate-mapping PUBLIC |
|---|
| 3 |
"-//Hibernate/Hibernate Mapping DTD//EN" |
|---|
| 4 |
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd"> |
|---|
| 5 |
|
|---|
| 6 |
<!-- =================================================================== |
|---|
| 7 |
Object representing the system parameters |
|---|
| 8 |
=================================================================== --> |
|---|
| 9 |
|
|---|
| 10 |
<hibernate-mapping> |
|---|
| 11 |
<class name="org.bedework.calfacade.BwSystem" |
|---|
| 12 |
table="bw_settings"> |
|---|
| 13 |
<cache usage="read-write"/> |
|---|
| 14 |
<id name="id" type="integer" column="id" unsaved-value="-1"> |
|---|
| 15 |
<generator class="native"/> |
|---|
| 16 |
</id> |
|---|
| 17 |
|
|---|
| 18 |
<version name="seq" column="bwseq" type="integer" /> |
|---|
| 19 |
|
|---|
| 20 |
<property name="name" column="bwname" type="string" |
|---|
| 21 |
length="200" /> |
|---|
| 22 |
<property name="tzid" column="tzid" type="string" /> |
|---|
| 23 |
<property name="systemid" column="systemid" type="string" /> |
|---|
| 24 |
|
|---|
| 25 |
<property name="publicCalendarRoot" column="publicCalendarRoot" |
|---|
| 26 |
type="string" length="100" /> |
|---|
| 27 |
<property name="userCalendarRoot" column="userCalendarRoot" |
|---|
| 28 |
type="string" length="100" /> |
|---|
| 29 |
<property name="userDefaultCalendar" column="userDefaultCalendar" |
|---|
| 30 |
type="string" length="100" /> |
|---|
| 31 |
<property name="defaultTrashCalendar" column="defaultTrashCalendar" |
|---|
| 32 |
type="string" length="100" /> |
|---|
| 33 |
<property name="userInbox" column="userInbox" |
|---|
| 34 |
type="string" length="100" /> |
|---|
| 35 |
<property name="userOutbox" column="userOutbox" |
|---|
| 36 |
type="string" length="100" /> |
|---|
| 37 |
<property name="deletedCalendar" column="deletedCalendar" |
|---|
| 38 |
type="string" length="100" /> |
|---|
| 39 |
<property name="busyCalendar" column="busyCalendar" |
|---|
| 40 |
type="string" length="100" /> |
|---|
| 41 |
<property name="defaultUserViewName" column="defaultUserViewName" |
|---|
| 42 |
type="string" length="100" /> |
|---|
| 43 |
|
|---|
| 44 |
<property name="defaultUserHour24" |
|---|
| 45 |
column="default_user_hour24" type="true_false" /> |
|---|
| 46 |
|
|---|
| 47 |
<property name="publicUser" column="public_user" |
|---|
| 48 |
type="string" length="100" /> |
|---|
| 49 |
|
|---|
| 50 |
<property name="httpConnectionsPerUser" column="http_connections_per_user" |
|---|
| 51 |
type="integer" /> |
|---|
| 52 |
<property name="httpConnectionsPerHost" column="http_connections_per_host" |
|---|
| 53 |
type="integer" /> |
|---|
| 54 |
<property name="httpConnections" column="http_connections" type="integer" /> |
|---|
| 55 |
|
|---|
| 56 |
<property name="maxPublicDescriptionLength" |
|---|
| 57 |
column="maxPublicDescriptionLength" type="integer" /> |
|---|
| 58 |
<property name="maxUserDescriptionLength" |
|---|
| 59 |
column="maxUserDescriptionLength" type="integer" /> |
|---|
| 60 |
<property name="maxUserEntitySize" column="maxUserEntitySize" |
|---|
| 61 |
type="integer" /> |
|---|
| 62 |
<property name="defaultUserQuota" column="defaultUserQuota" type="long" /> |
|---|
| 63 |
|
|---|
| 64 |
<property name="maxInstances" column="bwmax_instances" type="integer" /> |
|---|
| 65 |
<property name="maxYears" column="bwmax_years" type="integer" /> |
|---|
| 66 |
|
|---|
| 67 |
<property name="userauthClass" column="userauth_class" |
|---|
| 68 |
type="string" length="200" /> |
|---|
| 69 |
<property name="mailerClass" column="mailer_class" |
|---|
| 70 |
type="string" length="200" /> |
|---|
| 71 |
<property name="admingroupsClass" column="admingroups_class" |
|---|
| 72 |
type="string" length="200" /> |
|---|
| 73 |
<property name="usergroupsClass" column="usergroups_class" |
|---|
| 74 |
type="string" length="200" /> |
|---|
| 75 |
|
|---|
| 76 |
<property name="directoryBrowsingDisallowed" |
|---|
| 77 |
column="directory_browsing_disallowed" |
|---|
| 78 |
type="true_false" /> |
|---|
| 79 |
|
|---|
| 80 |
<property name="indexRoot" column="bwindex_root" |
|---|
| 81 |
type="string" length="500" /> |
|---|
| 82 |
|
|---|
| 83 |
<property name="localeList" column="bwlocales" |
|---|
| 84 |
type="string" length="1000" /> |
|---|
| 85 |
|
|---|
| 86 |
<property name="rootUsers" column="bwroot_users" |
|---|
| 87 |
type="string" length="500" /> |
|---|
| 88 |
|
|---|
| 89 |
<set name="properties" table="bw_system_properties" |
|---|
| 90 |
cascade="all,delete-orphan" |
|---|
| 91 |
lazy="false"> |
|---|
| 92 |
<key column="bwid" foreign-key="bw_sysprp_pid_fk" /> |
|---|
| 93 |
<composite-element class="org.bedework.calfacade.BwProperty"> |
|---|
| 94 |
<property name="name" type="string" length="200" |
|---|
| 95 |
column="bw_name" /> |
|---|
| 96 |
|
|---|
| 97 |
<property name="value" column="bw_value" type="text"/> |
|---|
| 98 |
</composite-element> |
|---|
| 99 |
</set> |
|---|
| 100 |
</class> |
|---|
| 101 |
|
|---|
| 102 |
<!-- ================================================================= |
|---|
| 103 |
System parameters queries |
|---|
| 104 |
================================================================= --> |
|---|
| 105 |
|
|---|
| 106 |
<query name="getSystemPars"><![CDATA[ |
|---|
| 107 |
from org.bedework.calfacade.BwSystem as sys |
|---|
| 108 |
where sys.name = :name |
|---|
| 109 |
]]></query> |
|---|
| 110 |
</hibernate-mapping> |
|---|
| 111 |
|
|---|