kms individually packaged and repair problems
New data source, whether related tables generated
T_USER,T_DEPARTMENT,
T_USER_ROLE_DEPARTMENT_SETT_DOMAIN,
t_field_extends,
t_calendar,
t_specialday,
t_standardday
Labeled as war package test
1. New data sources, whether related tables can be generated
t_user
…
t_user_department_role_set
Attribute class name | database |
---|---|
id | ID |
userId | USERID |
RoleId | RoleId |
DepartmentID | DepartmentID |
…
I had wanted to generate a table from jpa classes, but found references to hibernate, see the hibernate therefore generate and modify tables
hibernate.cfg.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.SetBigStringTryClob">true</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<mapping resource="cn/myapps/common/model/department/DepartmentVO.hbm.xml" />
<mapping resource="cn/myapps/common/model/user/UserVO.hbm.xml" />
<mapping resource="cn/myapps/common/model/user/UserDepartmentRoleSet.hbm.xml" />
<mapping resource="cn/myapps/common/model/domain/DomainVO.hbm.xml" />
<mapping resource="cn/myapps/common/model/fieldextends/FieldExtendsVO.hbm.xml" />
<mapping resource="cn/myapps/common/model/workcalendar/calendar/CalendarVO.hbm.xml" />
<mapping resource="cn/myapps/common/model/workcalendar/special/SpecialDayVO.hbm.xml" />
<mapping resource="cn/myapps/common/model/workcalendar/standard/StandardDayVO.hbm.xml" />
</session-factory>
</hibernate-configuration>
Table generation may be normally
Because the filters intercept kms authtime connection, thus allowing addition of
New users do not read the new standard calendar 24 hours night shift calendar calendar
Code generation requires
Add PersistenceFilter kms registered filter, causing the connection there Cache