aimyxmu
BlogJava
首页
新随笔
联系
聚合
管理
随笔 - 23 文章 - 3 trackbacks - 0
<
2006年7月
>
日
一
二
三
四
五
六
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
常用链接
我的随笔
我的评论
我的参与
最新评论
留言簿
(1)
给我留言
查看公开留言
查看私人留言
随笔档案
2006年12月 (1)
2006年7月 (3)
2006年6月 (3)
2006年5月 (5)
2006年4月 (11)
搜索
最新评论
1. re: 4.13 javascript的对象传递
靠,问的是怎么在方法之间传递对象。
--11
2. re: 4.13 javascript的对象传递
javascript确实博大精深,值得深入研究一下~
--大灰狼
3. re: 4.16 面对几个错误的解决关键
正在学习中,支持一下~
--大灰狼
阅读排行榜
1. 4.13 javascript的对象传递 (3657)
2. 4.16 面对几个错误的解决关键(2704)
3. no persistent for class (1169)
4. WF_Process—理解(384)
5. 5-11 sqlmap映射文件(308)
评论排行榜
1. 4.13 javascript的对象传递 (2)
2. 4.16 面对几个错误的解决关键(1)
3. request 对象(0)
4. 4.14 就因为form中少了一个id属性(0)
5. writer(0)
WF_Process—理解
ProcessInstance.hbm.xml:
<?
xml version
=
"
1.0
"
encoding
=
"
UTF-8
"
?>
<!
DOCTYPE hibernate
-
mapping PUBLIC
"
-//Hibernate/Hibernate Mapping DTD 3.0//EN
"
"
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd
"
>
<
hibernate
-
mapping
>
<
class
name
=
"
com.xindeco.workflow.ProcessInstance
"
table
=
"
WF_PROCESS
"
dynamic
-
update
=
"
true
"
dynamic
-
insert
=
"
true
"
select
-
before
-
update
=
"
false
"
optimistic
-
lock
=
"
version
"
>
<
id
name
=
"
ID
"
column
=
"
ID
"
type
=
"
long
"
length
=
"
30
"
>
<
generator
class
=
"
native
"
>
</
generator
>
</
id
>
<
discriminator
column
=
"
bizClass
"
type
=
"
string
"
/>
<
property
name
=
"
state
"
type
=
"
java.lang.Integer
"
update
=
"
true
"
insert
=
"
true
"
access
=
"
property
"
column
=
"
state
"
length
=
"
10
"
/>
<
many
-
to
-
one
name
=
"
flow
"
class
=
"
com.xindeco.workflow.WFFlow
"
cascade
=
"
none
"
outer
-
join
=
"
auto
"
update
=
"
true
"
insert
=
"
true
"
access
=
"
property
"
column
=
"
flowId
"
/>
<
set
name
=
"
tasks
"
lazy
=
"
true
"
inverse
=
"
true
"
cascade
=
"
delete
"
sort
=
"
unsorted
"
>
<
key
column
=
"
processId
"
>
</
key
>
<
one
-
to
-
many
class
=
"
com.xindeco.workflow.WFTask
"
/>
</
set
>
</
class
>
</
hibernate
-
mapping
>
CollRegPI.hbm.xml:
<?
xml version
=
"
1.0
"
?>
<!
DOCTYPE hibernate
-
mapping PUBLIC
"
-//Hibernate/Hibernate Mapping DTD 3.0//EN
"
"
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd
"
>
<
hibernate
-
mapping
default
-
access
=
"
field
"
>
<
subclass name
=
"
com.xindeco.business.pojo.wf.CollRegPI
"
discriminator
-
value
=
"2
"
extends
=
"
com.xindeco.workflow.ProcessInstance
"
lazy
=
"
false
"
>
<
many
-
to
-
one name
=
"
collReg
"
class
=
"
com.xindeco.business.pojo.CollReg
"
column
=
"
bizId
"
cascade
=
"
none
"
/>
</
subclass
>
</
hibernate
-
mapping
>
数据库的数据:
id flowid bizId bizClass state
21 2 9 2 0
22 2 10 2 0
23 2 11 2 0
24 2 12 2 0
25 2 13 2 0
26 2 14 2 0
29 2 17 2 0
30 2 18 2 1
44 4 1 32 0
45 4 2 32 1
46 5 1 33 0
47 5 2 33 1
48 5 3 33 0
50 3 1 3 0
51 3 1 3 0
如果bizclass=2是同一种类型的class。由
<
discriminator
column
=
"
bizClass
"
type
=
"
string
"
/>来表示。
posted on 2006-07-06 10:37
aimy
阅读(384)
评论(0)
编辑
收藏
新用户注册
刷新评论列表
只有注册用户
登录
后才能发表评论。
网站导航:
博客园
IT新闻
知识库
C++博客
博问
管理