| 1 |
<?xml version="1.0"?> |
|---|
| 2 |
<!DOCTYPE hibernate-mapping PUBLIC |
|---|
| 3 |
"-//Hibernate/Hibernate Mapping DTD//EN" |
|---|
| 4 |
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|---|
| 5 |
|
|---|
| 6 |
<!-- =================================================================== |
|---|
| 7 |
Calendar Suites |
|---|
| 8 |
=================================================================== --> |
|---|
| 9 |
|
|---|
| 10 |
<hibernate-mapping> |
|---|
| 11 |
<class name="org.bedework.calfacade.svc.BwCalSuite" |
|---|
| 12 |
table="bw_calsuites"> |
|---|
| 13 |
<id name="id" type="integer" column="csid" unsaved-value="-1"> |
|---|
| 14 |
<generator class="native"/> |
|---|
| 15 |
</id> |
|---|
| 16 |
|
|---|
| 17 |
<version name="seq" column="bwseq" type="integer" /> |
|---|
| 18 |
|
|---|
| 19 |
<property name="creatorHref" column="bw_creator" type="string" |
|---|
| 20 |
index="bwidx_cals_creator" /> |
|---|
| 21 |
|
|---|
| 22 |
<property name="ownerHref" column="bw_owner" type="string" |
|---|
| 23 |
index="bwidx_cals_owner" /> |
|---|
| 24 |
|
|---|
| 25 |
<property name="access" column="bwaccess" type="string" |
|---|
| 26 |
length="3900" /> |
|---|
| 27 |
|
|---|
| 28 |
<property name="publick" type="true_false" > |
|---|
| 29 |
<column name="publick" not-null="true" /> |
|---|
| 30 |
</property> |
|---|
| 31 |
|
|---|
| 32 |
<property name="name" column="csname" type="string" not-null="true" |
|---|
| 33 |
length="255" unique="true" /> |
|---|
| 34 |
|
|---|
| 35 |
<many-to-one name="group" |
|---|
| 36 |
class="org.bedework.calfacade.svc.BwAdminGroup" |
|---|
| 37 |
column="groupid" not-null="true" |
|---|
| 38 |
index="bwidx_calsuite_group" |
|---|
| 39 |
foreign-key="bw_cs_ag_fk" /> |
|---|
| 40 |
|
|---|
| 41 |
<property name="rootCollectionPath" column="bw_root_collection" |
|---|
| 42 |
type="string" length="3000" |
|---|
| 43 |
index="bwidx_cs_rootcol" /> |
|---|
| 44 |
|
|---|
| 45 |
<property name="submissionsRootPath" column="bw_submissions_root" |
|---|
| 46 |
type="string" length="3000" |
|---|
| 47 |
index="bwidx_cs_subroot" /> |
|---|
| 48 |
</class> |
|---|
| 49 |
|
|---|
| 50 |
<!-- ================================================================= |
|---|
| 51 |
Calendar suite queries |
|---|
| 52 |
================================================================= --> |
|---|
| 53 |
|
|---|
| 54 |
<query name="getCalSuite"><![CDATA[ |
|---|
| 55 |
from org.bedework.calfacade.svc.BwCalSuite cal |
|---|
| 56 |
where cal.name=:name |
|---|
| 57 |
]]></query> |
|---|
| 58 |
|
|---|
| 59 |
<query name="getCalSuiteByGroup"><![CDATA[ |
|---|
| 60 |
from org.bedework.calfacade.svc.BwCalSuite cal |
|---|
| 61 |
where cal.group=:group |
|---|
| 62 |
]]></query> |
|---|
| 63 |
</hibernate-mapping> |
|---|
| 64 |
|
|---|