- 浏览: 133386 次
- 性别:
- 来自: 长沙
文章分类
最新评论
-
vivian123an:
http://stackoverflow.com/questi ...
Hibernate的merge()方法 -
zuoguodong:
...
Hibernate的merge()方法 -
lydawen:
个人感觉这个性能没什么意义吧,一次启动只获取一次,为什么每次拿 ...
Spring在web应用中获得Bean的方法 -
379855529:
好详细的分析啊,受教了。
Hibernate的merge()方法 -
zouqone:
keryluo 写道最后一个例子,如果改成下面的代码:Sess ...
Hibernate的merge()方法
JBPM4没有自带sqlserver的脚本,所以只能自己创建数据表
下面是建表语句:
create table JBPM4_DEPLOYMENT (
DBID_ numeric(19,0) not null,
NAME_ varchar(255),
TIMESTAMP_ numeric(19,0),
STATE_ varchar(255),
primary key (DBID_)
);
create table JBPM4_DEPLOYPROP (
DBID_ numeric(19,0) not null,
DEPLOYMENT_ numeric(19,0),
OBJNAME_ varchar(255),
KEY_ varchar(255),
STRINGVAL_ varchar(255),
LONGVAL_ numeric(19,0),
primary key (DBID_)
);
create table JBPM4_EXECUTION (
DBID_ numeric(19,0) not null,
CLASS_ varchar(255) not null,
DBVERSION_ numeric(10,0) not null,
ACTIVITYNAME_ varchar(255),
PROCDEFID_ varchar(255),
HASVARS_ numeric(1,0),
NAME_ varchar(255),
KEY_ varchar(255),
ID_ varchar(255) unique,
STATE_ varchar(255),
SUSPHISTSTATE_ varchar(255),
PRIORITY_ numeric(10,0),
HISACTINST_ numeric(19,0),
PARENT_ numeric(19,0),
INSTANCE_ numeric(19,0),
SUPEREXEC_ numeric(19,0),
SUBPROCINST_ numeric(19,0),
PARENT_IDX_ numeric(10,0),
primary key (DBID_)
);
create table JBPM4_HIST_ACTINST (
DBID_ numeric(19,0) not null,
CLASS_ varchar(255) not null,
DBVERSION_ numeric(10,0) not null,
HPROCI_ numeric(19,0),
TYPE_ varchar(255),
EXECUTION_ varchar(255),
ACTIVITY_NAME_ varchar(255),
START_ datetime,
END_ datetime,
DURATION_ numeric(19,0),
TRANSITION_ varchar(255),
NEXTIDX_ numeric(10,0),
HTASK_ numeric(19,0),
primary key (DBID_)
);
create table JBPM4_HIST_DETAIL (
DBID_ numeric(19,0) not null,
CLASS_ varchar(255) not null,
DBVERSION_ numeric(10,0) not null,
USERID_ varchar(255),
TIME_ datetime,
HPROCI_ numeric(19,0),
HPROCIIDX_ numeric(10,0),
HACTI_ numeric(19,0),
HACTIIDX_ numeric(10,0),
HTASK_ numeric(19,0),
HTASKIDX_ numeric(10,0),
HVAR_ numeric(19,0),
HVARIDX_ numeric(10,0),
MESSAGE_ varchar(255),
OLD_STR_ varchar(255),
NEW_STR_ varchar(255),
OLD_INT_ numeric(10,0),
NEW_INT_ numeric(10,0),
OLD_TIME_ datetime,
NEW_TIME_ datetime,
PARENT_ numeric(19,0),
PARENT_IDX_ numeric(10,0),
primary key (DBID_)
);
create table JBPM4_HIST_PROCINST (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
ID_ varchar(255),
PROCDEFID_ varchar(255),
KEY_ varchar(255),
START_ datetime,
END_ datetime,
DURATION_ numeric(19,0),
STATE_ varchar(255),
ENDACTIVITY_ varchar(255),
NEXTIDX_ numeric(10,0),
primary key (DBID_)
);
create table JBPM4_HIST_TASK (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
EXECUTION_ varchar(255),
OUTCOME_ varchar(255),
ASSIGNEE_ varchar(255),
PRIORITY_ numeric(10,0),
STATE_ varchar(255),
CREATE_ datetime,
END_ datetime,
DURATION_ numeric(19,0),
NEXTIDX_ numeric(10,0),
SUPERTASK_ numeric(19,0),
primary key (DBID_)
);
create table JBPM4_HIST_VAR (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
PROCINSTID_ varchar(255),
EXECUTIONID_ varchar(255),
VARNAME_ varchar(255),
VALUE_ varchar(255),
HPROCI_ numeric(19,0),
HTASK_ numeric(19,0),
primary key (DBID_)
);
create table JBPM4_ID_GROUP (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
ID_ varchar(255),
NAME_ varchar(255),
TYPE_ varchar(255),
PARENT_ numeric(19,0),
primary key (DBID_)
);
create table JBPM4_ID_MEMBERSHIP (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
USER_ numeric(19,0),
GROUP_ numeric(19,0),
NAME_ varchar(255),
primary key (DBID_)
);
create table JBPM4_ID_USER (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
ID_ varchar(255),
PASSWORD_ varchar(255),
GIVENNAME_ varchar(255),
FAMILYNAME_ varchar(255),
BUSINESSEMAIL_ varchar(255),
primary key (DBID_)
);
create table JBPM4_JOB (
DBID_ numeric(19,0) not null,
CLASS_ varchar(255) not null,
DBVERSION_ numeric(10,0) not null,
DUEDATE_ datetime,
STATE_ varchar(255),
ISEXCLUSIVE_ numeric(1,0),
LOCKOWNER_ varchar(255),
LOCKEXPTIME_ datetime,
EXCEPTION_ text,
RETRIES_ numeric(10,0),
PROCESSINSTANCE_ numeric(19,0),
EXECUTION_ numeric(19,0),
CFG_ numeric(19,0),
SIGNAL_ varchar(255),
EVENT_ varchar(255),
REPEAT_ varchar(255),
primary key (DBID_)
);
create table JBPM4_LOB (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
BLOB_VALUE_ image,
DEPLOYMENT_ numeric(19,0),
NAME_ text,
primary key (DBID_)
);
create table JBPM4_PARTICIPATION (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
GROUPID_ varchar(255),
USERID_ varchar(255),
TYPE_ varchar(255),
TASK_ numeric(19,0),
SWIMLANE_ numeric(19,0),
primary key (DBID_)
);
create table JBPM4_PROPERTY (
KEY_ varchar(255) not null,
VERSION_ numeric(10,0) not null,
VALUE_ varchar(255),
primary key (KEY_)
);
create table JBPM4_SWIMLANE (
DBID_ numeric(19,0) not null,
DBVERSION_ numeric(10,0) not null,
NAME_ varchar(255),
ASSIGNEE_ varchar(255),
EXECUTION_ numeric(19,0),
primary key (DBID_)
);
create table JBPM4_TASK (
DBID_ numeric(19,0) not null,
CLASS_ char(1) not null,
DBVERSION_ numeric(10,0) not null,
NAME_ varchar(255),
DESCR_ text,
STATE_ varchar(255),
SUSPHISTSTATE_ varchar(255),
ASSIGNEE_ varchar(255),
FORM_ varchar(255),
PRIORITY_ numeric(10,0),
CREATE_ datetime,
DUEDATE_ datetime,
PROGRESS_ numeric(10,0),
SIGNALLING_ numeric(1,0),
EXECUTION_ID_ varchar(255),
ACTIVITY_NAME_ varchar(255),
HASVARS_ numeric(1,0),
SUPERTASK_ numeric(19,0),
EXECUTION_ numeric(19,0),
PROCINST_ numeric(19,0),
SWIMLANE_ numeric(19,0),
TASKDEFNAME_ varchar(255),
primary key (DBID_)
);
create table JBPM4_VARIABLE (
DBID_ numeric(19,0) not null,
CLASS_ varchar(255) not null,
DBVERSION_ numeric(10,0) not null,
KEY_ varchar(255),
CONVERTER_ varchar(255),
HIST_ numeric(1,0),
EXECUTION_ numeric(19,0),
TASK_ numeric(19,0),
LOB_ numeric(19,0),
DATE_VALUE_ datetime,
DOUBLE_VALUE_ double precision,
CLASSNAME_ varchar(255),
LONG_VALUE_ numeric(19,0),
STRING_VALUE_ varchar(255),
TEXT_VALUE_ text,
EXESYS_ numeric(19,0),
primary key (DBID_)
);
create index IDX_DEPLPROP_DEPL on JBPM4_DEPLOYPROP (DEPLOYMENT_);
alter table JBPM4_DEPLOYPROP
add constraint FK_DEPLPROP_DEPL
foreign key (DEPLOYMENT_)
references JBPM4_DEPLOYMENT;
create index IDX_EXEC_SUPEREXEC on JBPM4_EXECUTION (SUPEREXEC_);
create index IDX_EXEC_INSTANCE on JBPM4_EXECUTION (INSTANCE_);
create index IDX_EXEC_SUBPI on JBPM4_EXECUTION (SUBPROCINST_);
create index IDX_EXEC_PARENT on JBPM4_EXECUTION (PARENT_);
alter table JBPM4_EXECUTION
add constraint FK_EXEC_PARENT
foreign key (PARENT_)
references JBPM4_EXECUTION;
alter table JBPM4_EXECUTION
add constraint FK_EXEC_SUBPI
foreign key (SUBPROCINST_)
references JBPM4_EXECUTION;
alter table JBPM4_EXECUTION
add constraint FK_EXEC_INSTANCE
foreign key (INSTANCE_)
references JBPM4_EXECUTION;
alter table JBPM4_EXECUTION
add constraint FK_EXEC_SUPEREXEC
foreign key (SUPEREXEC_)
references JBPM4_EXECUTION;
create index IDX_HACTI_HPROCI on JBPM4_HIST_ACTINST (HPROCI_);
create index IDX_HTI_HTASK on JBPM4_HIST_ACTINST (HTASK_);
alter table JBPM4_HIST_ACTINST
add constraint FK_HACTI_HPROCI
foreign key (HPROCI_)
references JBPM4_HIST_PROCINST;
alter table JBPM4_HIST_ACTINST
add constraint FK_HTI_HTASK
foreign key (HTASK_)
references JBPM4_HIST_TASK;
create index IDX_HDET_HACTI on JBPM4_HIST_DETAIL (HACTI_);
create index IDX_HDET_HPROCI on JBPM4_HIST_DETAIL (HPROCI_);
create index IDX_HDET_HVAR on JBPM4_HIST_DETAIL (HVAR_);
create index IDX_HDET_HTASK on JBPM4_HIST_DETAIL (HTASK_);
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HPROCI
foreign key (HPROCI_)
references JBPM4_HIST_PROCINST;
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HACTI
foreign key (HACTI_)
references JBPM4_HIST_ACTINST;
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HTASK
foreign key (HTASK_)
references JBPM4_HIST_TASK;
alter table JBPM4_HIST_DETAIL
add constraint FK_HDETAIL_HVAR
foreign key (HVAR_)
references JBPM4_HIST_VAR;
create index IDX_HSUPERT_SUB on JBPM4_HIST_TASK (SUPERTASK_);
alter table JBPM4_HIST_TASK
add constraint FK_HSUPERT_SUB
foreign key (SUPERTASK_)
references JBPM4_HIST_TASK;
create index IDX_HVAR_HPROCI on JBPM4_HIST_VAR (HPROCI_);
create index IDX_HVAR_HTASK on JBPM4_HIST_VAR (HTASK_);
alter table JBPM4_HIST_VAR
add constraint FK_HVAR_HPROCI
foreign key (HPROCI_)
references JBPM4_HIST_PROCINST;
alter table JBPM4_HIST_VAR
add constraint FK_HVAR_HTASK
foreign key (HTASK_)
references JBPM4_HIST_TASK;
create index IDX_GROUP_PARENT on JBPM4_ID_GROUP (PARENT_);
alter table JBPM4_ID_GROUP
add constraint FK_GROUP_PARENT
foreign key (PARENT_)
references JBPM4_ID_GROUP;
create index IDX_MEM_USER on JBPM4_ID_MEMBERSHIP (USER_);
create index IDX_MEM_GROUP on JBPM4_ID_MEMBERSHIP (GROUP_);
alter table JBPM4_ID_MEMBERSHIP
add constraint FK_MEM_GROUP
foreign key (GROUP_)
references JBPM4_ID_GROUP;
alter table JBPM4_ID_MEMBERSHIP
add constraint FK_MEM_USER
foreign key (USER_)
references JBPM4_ID_USER;
create index IDX_JOBRETRIES on JBPM4_JOB (RETRIES_);
create index IDX_JOB_CFG on JBPM4_JOB (CFG_);
create index IDX_JOB_PRINST on JBPM4_JOB (PROCESSINSTANCE_);
create index IDX_JOB_EXE on JBPM4_JOB (EXECUTION_);
create index IDX_JOBLOCKEXP on JBPM4_JOB (LOCKEXPTIME_);
create index IDX_JOBDUEDATE on JBPM4_JOB (DUEDATE_);
alter table JBPM4_JOB
add constraint FK_JOB_CFG
foreign key (CFG_)
references JBPM4_LOB;
create index IDX_LOB_DEPLOYMENT on JBPM4_LOB (DEPLOYMENT_);
alter table JBPM4_LOB
add constraint FK_LOB_DEPLOYMENT
foreign key (DEPLOYMENT_)
references JBPM4_DEPLOYMENT;
create index IDX_PART_TASK on JBPM4_PARTICIPATION (TASK_);
alter table JBPM4_PARTICIPATION
add constraint FK_PART_SWIMLANE
foreign key (SWIMLANE_)
references JBPM4_SWIMLANE;
alter table JBPM4_PARTICIPATION
add constraint FK_PART_TASK
foreign key (TASK_)
references JBPM4_TASK;
create index IDX_SWIMLANE_EXEC on JBPM4_SWIMLANE (EXECUTION_);
alter table JBPM4_SWIMLANE
add constraint FK_SWIMLANE_EXEC
foreign key (EXECUTION_)
references JBPM4_EXECUTION;
create index IDX_TASK_SUPERTASK on JBPM4_TASK (SUPERTASK_);
alter table JBPM4_TASK
add constraint FK_TASK_SWIML
foreign key (SWIMLANE_)
references JBPM4_SWIMLANE;
alter table JBPM4_TASK
add constraint FK_TASK_SUPERTASK
foreign key (SUPERTASK_)
references JBPM4_TASK;
create index IDX_VAR_EXESYS on JBPM4_VARIABLE (EXESYS_);
create index IDX_VAR_TASK on JBPM4_VARIABLE (TASK_);
create index IDX_VAR_EXECUTION on JBPM4_VARIABLE (EXECUTION_);
create index IDX_VAR_LOB on JBPM4_VARIABLE (LOB_);
alter table JBPM4_VARIABLE
add constraint FK_VAR_LOB
foreign key (LOB_)
references JBPM4_LOB;
alter table JBPM4_VARIABLE
add constraint FK_VAR_EXECUTION
foreign key (EXECUTION_)
references JBPM4_EXECUTION;
alter table JBPM4_VARIABLE
add constraint FK_VAR_EXESYS
foreign key (EXESYS_)
references JBPM4_EXECUTION;
alter table JBPM4_VARIABLE
add constraint FK_VAR_TASK
foreign key (TASK_)
references JBPM4_TASK;
下面是删除表语句
- alter table JBPM4_DEPLOYPROP
- drop constraint FK_DEPLPROP_DEPL;
- alter table JBPM4_EXECUTION
- drop constraint FK_EXEC_PARENT;
- alter table JBPM4_EXECUTION
- drop constraint FK_EXEC_SUBPI;
- alter table JBPM4_EXECUTION
- drop constraint FK_EXEC_INSTANCE;
- alter table JBPM4_EXECUTION
- drop constraint FK_EXEC_SUPEREXEC;
- alter table JBPM4_HIST_ACTINST
- drop constraint FK_HACTI_HPROCI;
- alter table JBPM4_HIST_ACTINST
- drop constraint FK_HTI_HTASK;
- alter table JBPM4_HIST_DETAIL
- drop constraint FK_HDETAIL_HPROCI;
- alter table JBPM4_HIST_DETAIL
- drop constraint FK_HDETAIL_HACTI;
- alter table JBPM4_HIST_DETAIL
- drop constraint FK_HDETAIL_HTASK;
- alter table JBPM4_HIST_DETAIL
- drop constraint FK_HDETAIL_HVAR;
- alter table JBPM4_HIST_TASK
- drop constraint FK_HSUPERT_SUB;
- alter table JBPM4_HIST_VAR
- drop constraint FK_HVAR_HPROCI;
- alter table JBPM4_HIST_VAR
- drop constraint FK_HVAR_HTASK;
- alter table JBPM4_ID_GROUP
- drop constraint FK_GROUP_PARENT;
- alter table JBPM4_ID_MEMBERSHIP
- drop constraint FK_MEM_GROUP;
- alter table JBPM4_ID_MEMBERSHIP
- drop constraint FK_MEM_USER;
- alter table JBPM4_JOB
- drop constraint FK_JOB_CFG;
- alter table JBPM4_LOB
- drop constraint FK_LOB_DEPLOYMENT;
- alter table JBPM4_PARTICIPATION
- drop constraint FK_PART_SWIMLANE;
- alter table JBPM4_PARTICIPATION
- drop constraint FK_PART_TASK;
- alter table JBPM4_SWIMLANE
- drop constraint FK_SWIMLANE_EXEC;
- alter table JBPM4_TASK
- drop constraint FK_TASK_SWIML;
- alter table JBPM4_TASK
- drop constraint FK_TASK_SUPERTASK;
- alter table JBPM4_VARIABLE
- drop constraint FK_VAR_LOB;
- alter table JBPM4_VARIABLE
- drop constraint FK_VAR_EXECUTION;
- alter table JBPM4_VARIABLE
- drop constraint FK_VAR_EXESYS;
- alter table JBPM4_VARIABLE
- drop constraint FK_VAR_TASK;
- drop table JBPM4_DEPLOYMENT;
- drop table JBPM4_DEPLOYPROP;
- drop table JBPM4_EXECUTION;
- drop table JBPM4_HIST_ACTINST;
- drop table JBPM4_HIST_DETAIL;
- drop table JBPM4_HIST_PROCINST;
- drop table JBPM4_HIST_TASK;
- drop table JBPM4_HIST_VAR;
- drop table JBPM4_ID_GROUP;
- drop table JBPM4_ID_MEMBERSHIP;
- drop table JBPM4_ID_USER;
- drop table JBPM4_JOB;
- drop table JBPM4_LOB;
- drop table JBPM4_PARTICIPATION;
- drop table JBPM4_PROPERTY;
- drop table JBPM4_SWIMLANE;
- drop table JBPM4_TASK;
- drop table JBPM4_VARIABLE;
发表评论
-
JBPM4整合Spring环境搭建
2012-03-27 14:01 1330搭建JBPM4.4和Struts2.2.1、Spring2. ... -
JBPM中的异常处理
2011-03-10 16:23 919在处理SQL异常的时候,通常不建议直接在持久层ca ... -
JBPM4.4中嵌入自己的用户体系
2011-03-10 14:38 1837很多时候,JBPM自己提供的用户系统是不够用的,这时候 ... -
JBPM中使用Hibernate
2011-03-09 11:20 833在JBPM中可以通过environment获得各种服务和接口。 ... -
JBPM4的常用方法
2011-03-08 17:37 2104TaskService的常用方法: TaskSe ...
相关推荐
工作流jbpm4.4,建表语句,已修正错误,希望后来人能够节约时间。
内含的"建表sql语句"是为了初始化jBPM数据库所必需的。jBPM在运行时需要存储流程实例、任务、变量等数据,因此需要创建相应的数据库表。这些SQL脚本可能包括创建流程定义表、任务表、历史表等,它们确保了jBPM能够...
JBPM 4 mysql 建表 sql ,希望对某些人有用处
由于jbpm4.4没有提供SqlServer 相关建表语句,需要我们自己去建立,个人拿原来的sql文件修改了一下,希望对大家有用。。直接打开执行就可以了!!
4. **JDBC驱动**:为了连接到SQL Server,jBPM需要SQL Server的JDBC驱动,这个驱动在lib文件夹中可能包含。JDBC(Java Database Connectivity)是Java中用来访问数据库的标准接口。 5. **精简版**:通常精简版意味...
jbpm3.2 mysql修改可用建表语句 在mysql命令行下使用:source D:1.sql
- 外键约束`FK_DEPLPROP_DEPL`确保`JBPM4_DEPLOYPROP.deployment`字段的值存在于`JBPM4_DEPLOYMENT.dbid_`中。 - **索引创建:** ```sql createindex IDX_DEPLPROP_DEPL on JBPM4_DEPLOYPROP(DEPLOYMENT_) ...
由于jbpm4.4没有提供SqlServer 相关建表语句,需要我们自己去建立,个人拿原来的sql文件修改了一下,希望对大家有用。。
在本配置中,我们将关注如何将jbpm4.3与Microsoft SQL Server数据库进行集成,以利用其强大的数据存储和处理能力。SQL Server是一款广泛使用的商业关系型数据库管理系统,它提供了高性能、可扩展性和安全性。 首先...
标题与描述均提到了“jbpm4.4_sql_server_数据库创建”,这表明主题是关于在SQL Server上为JBPM 4.4版本创建数据库结构的过程。JBPM(JBoss Business Process Management)是一个开源的工作流管理系统,用于实现业务...
jbpm官方提供的db-schema没有SQL Server的;这边有一个SQL Server的shcema的sql
jBPM4.0 SQLServer Hibernate配置文件
jbpm4.3数据库创建的sqlserver脚本
### JBPM 4.1 在 SQL Server 2000 上的部署说明 #### 一、概述 JBPM(Java Business Process Model)是一款开源的工作流引擎,它支持BPMN 2.0标准,能够帮助开发者快速实现业务流程管理的需求。本文档主要介绍如何...
这东西很少见啊,共享给大家,是jbpm4的数据库表sql脚本,不知道怎么建库的朋友可以参考。
jBPM4.0 安装版没有提供的SQLServer创建脚本
本工程在tomact6中调试通过,下载完毕后将database文件夹的数据文件附加到sqlserver2000数据中,将jbpm-console工程放到tomcat6中,并将tomcat-users.xml文件覆盖运行即可。
jbpm.jpdl.mssql.sql包含了在SQL Server上构建jbpm环境所需的SQL语句,使得jbpm能够在Windows平台下顺利运行。 3. **jbpm.jpdl.sybase.sql**:Sybase是另一款高性能的关系数据库,尤其在处理大量事务时表现出色。这...
经过我修正的JBPM4.4数据库mysql5.5建表SQL命令,共18张表
在“jbpm4.4+ssh2+sql server2000带jar包”的项目中,这些jar包包含了jbpm4.4、SSH2框架以及其他依赖库的代码,用于构建和运行整个请假流程应用。 【jbpm_5_leave_web】可能是该项目的主模块或子目录,可能包含了...