]> git.argeo.org Git - gpl/argeo-slc.git/blob - process/SlcExecutionStep.hbm.xml
Prepare next development cycle
[gpl/argeo-slc.git] / process / SlcExecutionStep.hbm.xml
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2007-2012 Mathieu Baudier
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17
18 -->
19 <!DOCTYPE hibernate-mapping PUBLIC
20 "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
21 "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
22 <hibernate-mapping package="org.argeo.slc.process">
23 <class name="SlcExecutionStep" table="SLC_EXECUTION_STEP">
24 <cache usage="nonstrict-read-write" />
25
26 <id name="uuid" column="UUID" />
27 <property name="type" column="TYPE" />
28 <property name="thread" column="THREAD" />
29 <property name="timestamp" column="TSTAMP" type="imm_timestamp" />
30
31 <list name="logLines" cascade="all" lazy="false"
32 table="SLC_EXECUTION_STEP_LOG_LINE">
33 <cache usage="nonstrict-read-write" />
34 <key column="SLC_EXECUTION_STEP_ID" />
35 <list-index column="INDX" />
36 <element column="LOG_LINE" type="text" />
37 </list>
38
39 <query name="stepIndex"><![CDATA[
40 select index(step)
41 from SlcExecution process
42 join process.steps step
43 with step.uuid = ?
44 where process.uuid = ?
45 ]]></query>
46 <query name="stepsAfter"><![CDATA[
47 select step
48 from SlcExecution process
49 join process.steps step
50 where process.uuid = ?
51 and index(step) > ?
52 ]]></query>
53 </class>
54 </hibernate-mapping>