• R/O
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision2408 (tree)
Time2022-10-03 23:01:36
Authort_nakayama1971

Log Message

invisble対応

Change Summary

Incremental Difference

--- trunk/framework/pjDb/hbm2java-build.xml (nonexistent)
+++ trunk/framework/pjDb/hbm2java-build.xml (revision 2408)
@@ -0,0 +1,21 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+
3+<project name="GeneratePojo" basedir="." default="hbm2java">
4+
5+ <target name="hbm2java" description="execute hbm2java.">
6+ <hibernatetool>
7+ <jdbcconfiguration
8+ propertyfile="hibernate.properties"
9+ detectoptimisticlock="false"
10+ reversestrategy="common.db.dao.hibernate.reveng.DefaultStrategy"
11+ packagename="project.db.model"
12+ revengfile="hibernate.reveng.xml" />
13+ <hbm2java destdir="src/main/java" templatepath="ftl" jdk5="true" ejb3="true" />
14+ </hibernatetool>
15+ </target>
16+
17+ <taskdef name="hibernatetool"
18+ classname="org.hibernate.tool.ant.HibernateToolTask"
19+ classpath="${generate_classpath}" />
20+
21+</project>
--- trunk/framework/pjDb/pom.xml (nonexistent)
+++ trunk/framework/pjDb/pom.xml (revision 2408)
@@ -0,0 +1,152 @@
1+<?xml version="1.0" encoding="UTF-8"?>
2+<project xmlns="http://maven.apache.org/POM/4.0.0"
3+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+ <modelVersion>4.0.0</modelVersion>
6+
7+ <groupId>ThoughtBase</groupId>
8+ <artifactId>pjDb</artifactId>
9+ <version>1.0.0</version>
10+ <packaging>jar</packaging>
11+
12+ <properties>
13+ <maven.compiler.source>19</maven.compiler.source>
14+ <maven.compiler.target>19</maven.compiler.target>
15+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
17+ </properties>
18+
19+ <dependencies>
20+ <dependency>
21+ <groupId>org.hibernate.orm</groupId>
22+ <artifactId>hibernate-core</artifactId>
23+ <version>6.0.0.Beta2</version>
24+ <scope>provided</scope>
25+ </dependency>
26+ <dependency>
27+ <groupId>jakarta.persistence</groupId>
28+ <artifactId>jakarta.persistence-api</artifactId>
29+ <version>3.1.0</version>
30+ <scope>provided</scope>
31+ </dependency>
32+
33+ <dependency>
34+ <groupId>org.hibernate.tool</groupId>
35+ <artifactId>hibernate-tools-ant</artifactId>
36+ <version>6.0.0.Beta2</version>
37+ <scope>runtime</scope>
38+ </dependency>
39+ <dependency>
40+ <groupId>org.postgresql</groupId>
41+ <artifactId>postgresql</artifactId>
42+ <version>42.5.0</version>
43+ <scope>runtime</scope>
44+ </dependency>
45+ <dependency>
46+ <groupId>org.codehaus.plexus</groupId>
47+ <artifactId>plexus-classworlds</artifactId>
48+ <version>2.6.0</version>
49+ <scope>runtime</scope>
50+ </dependency>
51+
52+ <dependency>
53+ <groupId>org.junit.jupiter</groupId>
54+ <artifactId>junit-jupiter-engine</artifactId>
55+ <version>5.9.0</version>
56+ <scope>test</scope>
57+ </dependency>
58+ </dependencies>
59+
60+ <build>
61+ <pluginManagement>
62+ <plugins>
63+ <plugin>
64+ <artifactId>maven-antrun-plugin</artifactId>
65+ <version>3.1.0</version>
66+ </plugin>
67+ </plugins>
68+ </pluginManagement>
69+
70+ <plugins>
71+ <plugin>
72+ <groupId>org.apache.maven.plugins</groupId>
73+ <artifactId>maven-antrun-plugin</artifactId>
74+ <configuration>
75+ <target>
76+ <property name="generate_classpath" refid="maven.test.classpath" />
77+ <ant dir="${project.basedir}" antfile="hbm2java-build.xml" inheritRefs="true" />
78+ </target>
79+ </configuration>
80+ <!-- to disable maven classloader
81+ <dependencies>
82+ <dependency>
83+ <groupId>org.hibernate.tool</groupId>
84+ <artifactId>hibernate-tools-ant</artifactId>
85+ <version>6.0.0.Beta2</version>
86+ </dependency>
87+ <dependency>
88+ <groupId>org.postgresql</groupId>
89+ <artifactId>postgresql</artifactId>
90+ <version>42.5.0</version>
91+ </dependency>
92+ </dependencies> -->
93+ </plugin>
94+
95+ <!-- to execute hibernate-tools-maven. it's Class Cast Exception. -->
96+ <plugin>
97+ <groupId>org.codehaus.mojo</groupId>
98+ <artifactId>exec-maven-plugin</artifactId>
99+ <version>3.1.0</version>
100+ <configuration>
101+ <environmentVariables>
102+ <environmentVariables>
103+ <MAVEN_OPTS>
104+ -Dmaven.multiModuleProjectDirectory=${project.basedir}
105+ -Dclassworlds.conf=${env.M3_HOME}/bin/m2.conf
106+ -Dmaven.home=${env.M3_HOME}
107+ </MAVEN_OPTS>
108+ </environmentVariables>
109+ </environmentVariables>
110+ <mainClass>org.codehaus.classworlds.Launcher</mainClass>
111+ <arguments>
112+ <argument>hibernate-tools:hbm2java</argument>
113+ </arguments>
114+ </configuration>
115+ <dependencies>
116+ <dependency>
117+ <groupId>org.codehaus.plexus</groupId>
118+ <artifactId>plexus-classworlds</artifactId>
119+ <version>2.6.0</version>
120+ </dependency>
121+ </dependencies>
122+ </plugin>
123+
124+ <!-- doesn't work cause by revengStrategy. -->
125+ <plugin>
126+ <groupId>org.hibernate.tool</groupId>
127+ <artifactId>hibernate-tools-maven</artifactId>
128+ <version>6.0.0.Beta2</version>
129+ <configuration>
130+ <createCollectionForForeignKey>false</createCollectionForForeignKey>
131+ <createManyToOneForForeignKey>false</createManyToOneForForeignKey>
132+ <detectOptimisticLock>false</detectOptimisticLock>
133+ <ejb3>true</ejb3>
134+ <jdk5>true</jdk5>
135+ <outputDirectory>src/main/java</outputDirectory>
136+ <packageName>project.db.model</packageName>
137+ <propertyFile>hibernate.properties</propertyFile>
138+ <revengFile>hibernate.reveng.xml</revengFile>
139+ <revengStrategy>common.db.dao.hibernate.reveng.DefaultStrategy</revengStrategy>
140+ <templatePath>${project.basedir}/ftl</templatePath>
141+ </configuration>
142+ <dependencies>
143+ <dependency>
144+ <groupId>org.postgresql</groupId>
145+ <artifactId>postgresql</artifactId>
146+ <version>42.5.0</version>
147+ </dependency>
148+ </dependencies>
149+ </plugin>
150+ </plugins>
151+ </build>
152+</project>
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
--- trunk/framework/pjDb/src/project/db/model/FwJobFile.java (revision 2407)
+++ trunk/framework/pjDb/src/project/db/model/FwJobFile.java (nonexistent)
@@ -1,102 +0,0 @@
1-package project.db.model;
2-
3-import jakarta.persistence.AttributeOverride;
4-import jakarta.persistence.AttributeOverrides;
5-import jakarta.persistence.Column;
6-import jakarta.persistence.EmbeddedId;
7-import jakarta.persistence.Entity;
8-import jakarta.persistence.Table;
9-
10-/**
11- * FwJobFile generated by hbm2java
12- */
13-@org.hibernate.annotations.DynamicInsert
14-@Entity
15-@Table(name = "fw_job_file")
16-public class FwJobFile implements java.io.Serializable {
17-
18- private FwJobFileId id;
19- private String fileName;
20- private String filePath;
21- private Long fileSize;
22- private String downloadName;
23- private int downloadCount;
24-
25- public FwJobFile() {
26- }
27-
28- public FwJobFile(FwJobFileId id, String fileName, int downloadCount) {
29- this.id = id;
30- this.fileName = fileName;
31- this.downloadCount = downloadCount;
32- }
33-
34- public FwJobFile(FwJobFileId id, String fileName, String filePath,
35- Long fileSize, String downloadName, int downloadCount) {
36- this.id = id;
37- this.fileName = fileName;
38- this.filePath = filePath;
39- this.fileSize = fileSize;
40- this.downloadName = downloadName;
41- this.downloadCount = downloadCount;
42- }
43-
44- @EmbeddedId
45- @AttributeOverrides({
46- @AttributeOverride(name = "jobSeq", column = @Column(name = "job_seq", nullable = false)),
47- @AttributeOverride(name = "batSeq", column = @Column(name = "bat_seq", nullable = false)),
48- @AttributeOverride(name = "fileSeq", column = @Column(name = "file_seq", nullable = false)) })
49- public FwJobFileId getId() {
50- return this.id;
51- }
52-
53- public void setId(FwJobFileId id) {
54- this.id = id;
55- }
56-
57- @Column(name = "file_name", nullable = false, length = 128)
58- public String getFileName() {
59- return this.fileName;
60- }
61-
62- public void setFileName(String fileName) {
63- this.fileName = fileName;
64- }
65-
66- @Column(name = "file_path", length = 256)
67- public String getFilePath() {
68- return this.filePath;
69- }
70-
71- public void setFilePath(String filePath) {
72- this.filePath = filePath;
73- }
74-
75- @Column(name = "file_size")
76- public Long getFileSize() {
77- return this.fileSize;
78- }
79-
80- public void setFileSize(Long fileSize) {
81- this.fileSize = fileSize;
82- }
83-
84- @Column(name = "download_name", length = 128)
85- public String getDownloadName() {
86- return this.downloadName;
87- }
88-
89- public void setDownloadName(String downloadName) {
90- this.downloadName = downloadName;
91- }
92-
93- @Column(name = "download_count", nullable = false)
94- public int getDownloadCount() {
95- return this.downloadCount;
96- }
97-
98- public void setDownloadCount(int downloadCount) {
99- this.downloadCount = downloadCount;
100- }
101-
102-}
--- trunk/framework/pjDb/src/project/db/model/FwJobDetailId.java (revision 2407)
+++ trunk/framework/pjDb/src/project/db/model/FwJobDetailId.java (nonexistent)
@@ -1,62 +0,0 @@
1-package project.db.model;
2-
3-import jakarta.persistence.Column;
4-import jakarta.persistence.Embeddable;
5-
6-/**
7- * FwJobDetailId generated by hbm2java
8- */
9-@Embeddable
10-public class FwJobDetailId implements java.io.Serializable {
11-
12- private long jobSeq;
13- private int batSeq;
14-
15- public FwJobDetailId() {
16- }
17-
18- public FwJobDetailId(long jobSeq, int batSeq) {
19- this.jobSeq = jobSeq;
20- this.batSeq = batSeq;
21- }
22-
23- @Column(name = "job_seq", nullable = false)
24- public long getJobSeq() {
25- return this.jobSeq;
26- }
27-
28- public void setJobSeq(long jobSeq) {
29- this.jobSeq = jobSeq;
30- }
31-
32- @Column(name = "bat_seq", nullable = false)
33- public int getBatSeq() {
34- return this.batSeq;
35- }
36-
37- public void setBatSeq(int batSeq) {
38- this.batSeq = batSeq;
39- }
40-
41- public boolean equals(Object other) {
42- if ((this == other))
43- return true;
44- if ((other == null))
45- return false;
46- if (!(other instanceof FwJobDetailId))
47- return false;
48- FwJobDetailId castOther = (FwJobDetailId) other;
49-
50- return (this.getJobSeq() == castOther.getJobSeq())
51- && (this.getBatSeq() == castOther.getBatSeq());
52- }
53-
54- public int hashCode() {
55- int result = 17;
56-
57- result = 37 * result + (int) this.getJobSeq();
58- result = 37 * result + this.getBatSeq();
59- return result;
60- }
61-
62-}
--- trunk/framework/pjDb/src/project/db/model/FwJobRepeat.java (revision 2407)
+++ trunk/framework/pjDb/src/project/db/model/FwJobRepeat.java (nonexistent)
@@ -1,212 +0,0 @@
1-package project.db.model;
2-
3-import java.util.Date;
4-
5-import jakarta.persistence.Column;
6-import jakarta.persistence.Entity;
7-import jakarta.persistence.GeneratedValue;
8-import jakarta.persistence.Id;
9-import jakarta.persistence.SequenceGenerator;
10-import jakarta.persistence.Table;
11-import jakarta.persistence.Temporal;
12-import jakarta.persistence.TemporalType;
13-
14-/**
15- * FwJobRepeat generated by hbm2java
16- */
17-@org.hibernate.annotations.DynamicInsert
18-@Entity
19-@Table(name = "fw_job_repeat")
20-public class FwJobRepeat implements java.io.Serializable {
21-
22- private Long id;
23- private String jobId;
24- private String jobName;
25- private String batParam;
26- private String dispParam;
27- private String interval;
28- private String hour;
29- private String minute;
30- private String week;
31- private String yearMonthDay;
32- private Date insertDatetime;
33- private String insertId;
34- private Date updateDatetime;
35- private String updateId;
36- private int version;
37-
38- public FwJobRepeat() {
39- }
40-
41- public FwJobRepeat(String jobId, String jobName, Date insertDatetime,
42- String insertId, Date updateDatetime, String updateId, int version) {
43- this.jobId = jobId;
44- this.jobName = jobName;
45- this.insertDatetime = insertDatetime;
46- this.insertId = insertId;
47- this.updateDatetime = updateDatetime;
48- this.updateId = updateId;
49- this.version = version;
50- }
51-
52- public FwJobRepeat(String jobId, String jobName, String batParam,
53- String dispParam, String interval, String hour, String minute,
54- String week, String yearMonthDay, Date insertDatetime,
55- String insertId, Date updateDatetime, String updateId, int version) {
56- this.jobId = jobId;
57- this.jobName = jobName;
58- this.batParam = batParam;
59- this.dispParam = dispParam;
60- this.interval = interval;
61- this.hour = hour;
62- this.minute = minute;
63- this.week = week;
64- this.yearMonthDay = yearMonthDay;
65- this.insertDatetime = insertDatetime;
66- this.insertId = insertId;
67- this.updateDatetime = updateDatetime;
68- this.updateId = updateId;
69- this.version = version;
70- }
71-
72- @Id
73- @SequenceGenerator(name = "generator", sequenceName = "generator", allocationSize = 1)
74- @GeneratedValue(generator = "generator")
75- @Column(name = "id", unique = true, nullable = false)
76- public Long getId() {
77- return this.id;
78- }
79-
80- public void setId(Long id) {
81- this.id = id;
82- }
83-
84- @Column(name = "job_id", nullable = false, length = 32)
85- public String getJobId() {
86- return this.jobId;
87- }
88-
89- public void setJobId(String jobId) {
90- this.jobId = jobId;
91- }
92-
93- @Column(name = "job_name", nullable = false, length = 128)
94- public String getJobName() {
95- return this.jobName;
96- }
97-
98- public void setJobName(String jobName) {
99- this.jobName = jobName;
100- }
101-
102- @Column(name = "bat_param", length = 512)
103- public String getBatParam() {
104- return this.batParam;
105- }
106-
107- public void setBatParam(String batParam) {
108- this.batParam = batParam;
109- }
110-
111- @Column(name = "disp_param", length = 512)
112- public String getDispParam() {
113- return this.dispParam;
114- }
115-
116- public void setDispParam(String dispParam) {
117- this.dispParam = dispParam;
118- }
119-
120- @Column(name = "interval", length = 8)
121- public String getInterval() {
122- return this.interval;
123- }
124-
125- public void setInterval(String interval) {
126- this.interval = interval;
127- }
128-
129- @Column(name = "hour", length = 2)
130- public String getHour() {
131- return this.hour;
132- }
133-
134- public void setHour(String hour) {
135- this.hour = hour;
136- }
137-
138- @Column(name = "minute", length = 2)
139- public String getMinute() {
140- return this.minute;
141- }
142-
143- public void setMinute(String minute) {
144- this.minute = minute;
145- }
146-
147- @Column(name = "week", length = 1)
148- public String getWeek() {
149- return this.week;
150- }
151-
152- public void setWeek(String week) {
153- this.week = week;
154- }
155-
156- @Column(name = "year_month_day", length = 8)
157- public String getYearMonthDay() {
158- return this.yearMonthDay;
159- }
160-
161- public void setYearMonthDay(String yearMonthDay) {
162- this.yearMonthDay = yearMonthDay;
163- }
164-
165- @Temporal(TemporalType.TIMESTAMP)
166- @Column(name = "insert_datetime", nullable = false, length = 29)
167- public Date getInsertDatetime() {
168- return this.insertDatetime;
169- }
170-
171- public void setInsertDatetime(Date insertDatetime) {
172- this.insertDatetime = insertDatetime;
173- }
174-
175- @Column(name = "insert_id", nullable = false, length = 32)
176- public String getInsertId() {
177- return this.insertId;
178- }
179-
180- public void setInsertId(String insertId) {
181- this.insertId = insertId;
182- }
183-
184- @Temporal(TemporalType.TIMESTAMP)
185- @Column(name = "update_datetime", nullable = false, length = 29)
186- public Date getUpdateDatetime() {
187- return this.updateDatetime;
188- }
189-
190- public void setUpdateDatetime(Date updateDatetime) {
191- this.updateDatetime = updateDatetime;
192- }
193-
194- @Column(name = "update_id", nullable = false, length = 32)
195- public String getUpdateId() {
196- return this.updateId;
197- }
198-
199- public void setUpdateId(String updateId) {
200- this.updateId = updateId;
201- }
202-
203- @Column(name = "version", nullable = false)
204- public int getVersion() {
205- return this.version;
206- }
207-
208- public void setVersion(int version) {
209- this.version = version;
210- }
211-
212-}
--- trunk/framework/pjDb/src/project/db/model/FwJobDetail.java (revision 2407)
+++ trunk/framework/pjDb/src/project/db/model/FwJobDetail.java (nonexistent)
@@ -1,121 +0,0 @@
1-package project.db.model;
2-
3-import java.util.Date;
4-
5-import jakarta.persistence.AttributeOverride;
6-import jakarta.persistence.AttributeOverrides;
7-import jakarta.persistence.Column;
8-import jakarta.persistence.EmbeddedId;
9-import jakarta.persistence.Entity;
10-import jakarta.persistence.Table;
11-import jakarta.persistence.Temporal;
12-import jakarta.persistence.TemporalType;
13-
14-/**
15- * FwJobDetail generated by hbm2java
16- */
17-@org.hibernate.annotations.DynamicInsert
18-@Entity
19-@Table(name = "fw_job_detail")
20-public class FwJobDetail implements java.io.Serializable {
21-
22- private FwJobDetailId id;
23- private String batName;
24- private int pid;
25- private int status;
26- private Date startDateTime;
27- private Date stopDateTime;
28- private String message;
29-
30- public FwJobDetail() {
31- }
32-
33- public FwJobDetail(FwJobDetailId id, String batName, int pid, int status,
34- Date startDateTime) {
35- this.id = id;
36- this.batName = batName;
37- this.pid = pid;
38- this.status = status;
39- this.startDateTime = startDateTime;
40- }
41-
42- public FwJobDetail(FwJobDetailId id, String batName, int pid, int status,
43- Date startDateTime, Date stopDateTime, String message) {
44- this.id = id;
45- this.batName = batName;
46- this.pid = pid;
47- this.status = status;
48- this.startDateTime = startDateTime;
49- this.stopDateTime = stopDateTime;
50- this.message = message;
51- }
52-
53- @EmbeddedId
54- @AttributeOverrides({
55- @AttributeOverride(name = "jobSeq", column = @Column(name = "job_seq", nullable = false)),
56- @AttributeOverride(name = "batSeq", column = @Column(name = "bat_seq", nullable = false)) })
57- public FwJobDetailId getId() {
58- return this.id;
59- }
60-
61- public void setId(FwJobDetailId id) {
62- this.id = id;
63- }
64-
65- @Column(name = "bat_name", nullable = false, length = 128)
66- public String getBatName() {
67- return this.batName;
68- }
69-
70- public void setBatName(String batName) {
71- this.batName = batName;
72- }
73-
74- @Column(name = "pid", nullable = false)
75- public int getPid() {
76- return this.pid;
77- }
78-
79- public void setPid(int pid) {
80- this.pid = pid;
81- }
82-
83- @Column(name = "status", nullable = false)
84- public int getStatus() {
85- return this.status;
86- }
87-
88- public void setStatus(int status) {
89- this.status = status;
90- }
91-
92- @Temporal(TemporalType.TIMESTAMP)
93- @Column(name = "start_date_time", nullable = false, length = 29)
94- public Date getStartDateTime() {
95- return this.startDateTime;
96- }
97-
98- public void setStartDateTime(Date startDateTime) {
99- this.startDateTime = startDateTime;
100- }
101-
102- @Temporal(TemporalType.TIMESTAMP)
103- @Column(name = "stop_date_time", length = 29)
104- public Date getStopDateTime() {
105- return this.stopDateTime;
106- }
107-
108- public void setStopDateTime(Date stopDateTime) {
109- this.stopDateTime = stopDateTime;
110- }
111-
112- @Column(name = "message", length = 512)
113- public String getMessage() {
114- return this.message;
115- }
116-
117- public void setMessage(String message) {
118- this.message = message;
119- }
120-
121-}
--- trunk/framework/pjDb/src/project/db/model/FooMaster.java (revision 2407)
+++ trunk/framework/pjDb/src/project/db/model/FooMaster.java (nonexistent)
@@ -1,183 +0,0 @@
1-package project.db.model;
2-
3-import java.util.Date;
4-
5-import jakarta.persistence.Column;
6-import jakarta.persistence.Entity;
7-import jakarta.persistence.GeneratedValue;
8-import jakarta.persistence.Id;
9-import jakarta.persistence.SequenceGenerator;
10-import jakarta.persistence.Table;
11-import jakarta.persistence.Temporal;
12-import jakarta.persistence.TemporalType;
13-
14-/**
15- * FooMaster generated by hbm2java
16- */
17-@org.hibernate.annotations.DynamicInsert
18-@Entity
19-@Table(name = "foo_master")
20-public class FooMaster implements java.io.Serializable {
21-
22- private Long id;
23- private String fooId;
24- private String hooId;
25- private Date torokuDatetime;
26- private String fooName;
27- private String fooAddress;
28- private String fooPhone;
29- private int version;
30- private String insertId;
31- private Date insertDatetime;
32- private String updateId;
33- private Date updateDatetime;
34-
35- public FooMaster() {
36- }
37-
38- public FooMaster(String fooId, String hooId, Date torokuDatetime,
39- String fooName, int version, String insertId, Date insertDatetime,
40- String updateId, Date updateDatetime) {
41- this.fooId = fooId;
42- this.hooId = hooId;
43- this.torokuDatetime = torokuDatetime;
44- this.fooName = fooName;
45- this.version = version;
46- this.insertId = insertId;
47- this.insertDatetime = insertDatetime;
48- this.updateId = updateId;
49- this.updateDatetime = updateDatetime;
50- }
51-
52- public FooMaster(String fooId, String hooId, Date torokuDatetime,
53- String fooName, String fooAddress, String fooPhone, int version,
54- String insertId, Date insertDatetime, String updateId,
55- Date updateDatetime) {
56- this.fooId = fooId;
57- this.hooId = hooId;
58- this.torokuDatetime = torokuDatetime;
59- this.fooName = fooName;
60- this.fooAddress = fooAddress;
61- this.fooPhone = fooPhone;
62- this.version = version;
63- this.insertId = insertId;
64- this.insertDatetime = insertDatetime;
65- this.updateId = updateId;
66- this.updateDatetime = updateDatetime;
67- }
68-
69- @Id
70- @SequenceGenerator(name = "generator", sequenceName = "generator", allocationSize = 1)
71- @GeneratedValue(generator = "generator")
72- @Column(name = "id", unique = true, nullable = false)
73- public Long getId() {
74- return this.id;
75- }
76-
77- public void setId(Long id) {
78- this.id = id;
79- }
80-
81- @Column(name = "foo_id", nullable = false, length = 32)
82- public String getFooId() {
83- return this.fooId;
84- }
85-
86- public void setFooId(String fooId) {
87- this.fooId = fooId;
88- }
89-
90- @Column(name = "hoo_id", nullable = false, length = 64)
91- public String getHooId() {
92- return this.hooId;
93- }
94-
95- public void setHooId(String hooId) {
96- this.hooId = hooId;
97- }
98-
99- @Temporal(TemporalType.TIMESTAMP)
100- @Column(name = "toroku_datetime", nullable = false, length = 29)
101- public Date getTorokuDatetime() {
102- return this.torokuDatetime;
103- }
104-
105- public void setTorokuDatetime(Date torokuDatetime) {
106- this.torokuDatetime = torokuDatetime;
107- }
108-
109- @Column(name = "foo_name", nullable = false, length = 128)
110- public String getFooName() {
111- return this.fooName;
112- }
113-
114- public void setFooName(String fooName) {
115- this.fooName = fooName;
116- }
117-
118- @Column(name = "foo_address", length = 256)
119- public String getFooAddress() {
120- return this.fooAddress;
121- }
122-
123- public void setFooAddress(String fooAddress) {
124- this.fooAddress = fooAddress;
125- }
126-
127- @Column(name = "foo_phone", length = 128)
128- public String getFooPhone() {
129- return this.fooPhone;
130- }
131-
132- public void setFooPhone(String fooPhone) {
133- this.fooPhone = fooPhone;
134- }
135-
136- @Column(name = "version", nullable = false)
137- public int getVersion() {
138- return this.version;
139- }
140-
141- public void setVersion(int version) {
142- this.version = version;
143- }
144-
145- @Column(name = "insert_id", nullable = false, length = 32)
146- public String getInsertId() {
147- return this.insertId;
148- }
149-
150- public void setInsertId(String insertId) {
151- this.insertId = insertId;
152- }
153-
154- @Temporal(TemporalType.TIMESTAMP)
155- @Column(name = "insert_datetime", nullable = false, length = 29)
156- public Date getInsertDatetime() {
157- return this.insertDatetime;
158- }
159-
160- public void setInsertDatetime(Date insertDatetime) {
161- this.insertDatetime = insertDatetime;
162- }
163-
164- @Column(name = "update_id", nullable = false, length = 32)
165- public String getUpdateId() {
166- return this.updateId;
167- }
168-
169- public void setUpdateId(String updateId) {
170- this.updateId = updateId;
171- }
172-
173- @Temporal(TemporalType.TIMESTAMP)
174- @Column(name = "update_datetime", nullable = false, length = 29)
175- public Date getUpdateDatetime() {
176- return this.updateDatetime;
177- }
178-
179- public void setUpdateDatetime(Date updateDatetime) {
180- this.updateDatetime = updateDatetime;
181- }
182-
183-}
--- trunk/framework/pjDb/src/project/db/model/FwJobBase.java (revision 2407)
+++ trunk/framework/pjDb/src/project/db/model/FwJobBase.java (nonexistent)
@@ -1,185 +0,0 @@
1-package project.db.model;
2-
3-import java.util.Date;
4-
5-import jakarta.persistence.Column;
6-import jakarta.persistence.Entity;
7-import jakarta.persistence.Id;
8-import jakarta.persistence.Table;
9-import jakarta.persistence.Temporal;
10-import jakarta.persistence.TemporalType;
11-
12-/**
13- * FwJobBase generated by hbm2java
14- */
15-@org.hibernate.annotations.DynamicInsert
16-@Entity
17-@Table(name = "fw_job_base")
18-public class FwJobBase implements java.io.Serializable {
19-
20- private long jobSeq;
21- private String jobId;
22- private String jobName;
23- private String entryUserId;
24- private Date entryDateTime;
25- private String entryIp;
26- private String jobParam;
27- private String batParam;
28- private String dispParam;
29- private String execHost;
30- private int status;
31- private String message;
32- private String remark;
33-
34- public FwJobBase() {
35- }
36-
37- public FwJobBase(long jobSeq, String jobId, String jobName,
38- String entryUserId, Date entryDateTime, int status) {
39- this.jobSeq = jobSeq;
40- this.jobId = jobId;
41- this.jobName = jobName;
42- this.entryUserId = entryUserId;
43- this.entryDateTime = entryDateTime;
44- this.status = status;
45- }
46-
47- public FwJobBase(long jobSeq, String jobId, String jobName,
48- String entryUserId, Date entryDateTime, String entryIp,
49- String jobParam, String batParam, String dispParam,
50- String execHost, int status, String message, String remark) {
51- this.jobSeq = jobSeq;
52- this.jobId = jobId;
53- this.jobName = jobName;
54- this.entryUserId = entryUserId;
55- this.entryDateTime = entryDateTime;
56- this.entryIp = entryIp;
57- this.jobParam = jobParam;
58- this.batParam = batParam;
59- this.dispParam = dispParam;
60- this.execHost = execHost;
61- this.status = status;
62- this.message = message;
63- this.remark = remark;
64- }
65-
66- @Id
67- @Column(name = "job_seq", unique = true, nullable = false)
68- public long getJobSeq() {
69- return this.jobSeq;
70- }
71-
72- public void setJobSeq(long jobSeq) {
73- this.jobSeq = jobSeq;
74- }
75-
76- @Column(name = "job_id", nullable = false, length = 32)
77- public String getJobId() {
78- return this.jobId;
79- }
80-
81- public void setJobId(String jobId) {
82- this.jobId = jobId;
83- }
84-
85- @Column(name = "job_name", nullable = false, length = 128)
86- public String getJobName() {
87- return this.jobName;
88- }
89-
90- public void setJobName(String jobName) {
91- this.jobName = jobName;
92- }
93-
94- @Column(name = "entry_user_id", nullable = false, length = 64)
95- public String getEntryUserId() {
96- return this.entryUserId;
97- }
98-
99- public void setEntryUserId(String entryUserId) {
100- this.entryUserId = entryUserId;
101- }
102-
103- @Temporal(TemporalType.TIMESTAMP)
104- @Column(name = "entry_date_time", nullable = false, length = 29)
105- public Date getEntryDateTime() {
106- return this.entryDateTime;
107- }
108-
109- public void setEntryDateTime(Date entryDateTime) {
110- this.entryDateTime = entryDateTime;
111- }
112-
113- @Column(name = "entry_ip", length = 64)
114- public String getEntryIp() {
115- return this.entryIp;
116- }
117-
118- public void setEntryIp(String entryIp) {
119- this.entryIp = entryIp;
120- }
121-
122- @Column(name = "job_param", length = 128)
123- public String getJobParam() {
124- return this.jobParam;
125- }
126-
127- public void setJobParam(String jobParam) {
128- this.jobParam = jobParam;
129- }
130-
131- @Column(name = "bat_param", length = 512)
132- public String getBatParam() {
133- return this.batParam;
134- }
135-
136- public void setBatParam(String batParam) {
137- this.batParam = batParam;
138- }
139-
140- @Column(name = "disp_param", length = 512)
141- public String getDispParam() {
142- return this.dispParam;
143- }
144-
145- public void setDispParam(String dispParam) {
146- this.dispParam = dispParam;
147- }
148-
149- @Column(name = "exec_host", length = 64)
150- public String getExecHost() {
151- return this.execHost;
152- }
153-
154- public void setExecHost(String execHost) {
155- this.execHost = execHost;
156- }
157-
158- @Column(name = "status", nullable = false)
159- public int getStatus() {
160- return this.status;
161- }
162-
163- public void setStatus(int status) {
164- this.status = status;
165- }
166-
167- @Column(name = "message", length = 512)
168- public String getMessage() {
169- return this.message;
170- }
171-
172- public void setMessage(String message) {
173- this.message = message;
174- }
175-
176- @Column(name = "remark", length = 256)
177- public String getRemark() {
178- return this.remark;
179- }
180-
181- public void setRemark(String remark) {
182- this.remark = remark;
183- }
184-
185-}
--- trunk/framework/pjDb/src/project/db/model/FwJobFileId.java (revision 2407)
+++ trunk/framework/pjDb/src/project/db/model/FwJobFileId.java (nonexistent)
@@ -1,75 +0,0 @@
1-package project.db.model;
2-
3-import jakarta.persistence.Column;
4-import jakarta.persistence.Embeddable;
5-
6-/**
7- * FwJobFileId generated by hbm2java
8- */
9-@Embeddable
10-public class FwJobFileId implements java.io.Serializable {
11-
12- private long jobSeq;
13- private int batSeq;
14- private int fileSeq;
15-
16- public FwJobFileId() {
17- }
18-
19- public FwJobFileId(long jobSeq, int batSeq, int fileSeq) {
20- this.jobSeq = jobSeq;
21- this.batSeq = batSeq;
22- this.fileSeq = fileSeq;
23- }
24-
25- @Column(name = "job_seq", nullable = false)
26- public long getJobSeq() {
27- return this.jobSeq;
28- }
29-
30- public void setJobSeq(long jobSeq) {
31- this.jobSeq = jobSeq;
32- }
33-
34- @Column(name = "bat_seq", nullable = false)
35- public int getBatSeq() {
36- return this.batSeq;
37- }
38-
39- public void setBatSeq(int batSeq) {
40- this.batSeq = batSeq;
41- }
42-
43- @Column(name = "file_seq", nullable = false)
44- public int getFileSeq() {
45- return this.fileSeq;
46- }
47-
48- public void setFileSeq(int fileSeq) {
49- this.fileSeq = fileSeq;
50- }
51-
52- public boolean equals(Object other) {
53- if ((this == other))
54- return true;
55- if ((other == null))
56- return false;
57- if (!(other instanceof FwJobFileId))
58- return false;
59- FwJobFileId castOther = (FwJobFileId) other;
60-
61- return (this.getJobSeq() == castOther.getJobSeq())
62- && (this.getBatSeq() == castOther.getBatSeq())
63- && (this.getFileSeq() == castOther.getFileSeq());
64- }
65-
66- public int hashCode() {
67- int result = 17;
68-
69- result = 37 * result + (int) this.getJobSeq();
70- result = 37 * result + this.getBatSeq();
71- result = 37 * result + this.getFileSeq();
72- return result;
73- }
74-
75-}
--- trunk/framework/pjDb/src/common/db/dao/hibernate/reveng/DefaultStrategy.java (revision 2407)
+++ trunk/framework/pjDb/src/common/db/dao/hibernate/reveng/DefaultStrategy.java (nonexistent)
@@ -1,74 +0,0 @@
1-package common.db.dao.hibernate.reveng;
2-
3-import java.util.ArrayList;
4-import java.util.HashMap;
5-import java.util.HashSet;
6-import java.util.List;
7-import java.util.Map;
8-import java.util.Properties;
9-import java.util.Set;
10-
11-import org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy;
12-import org.hibernate.cfg.reveng.ReverseEngineeringStrategy;
13-import org.hibernate.cfg.reveng.TableIdentifier;
14-
15-public final class DefaultStrategy extends DelegatingReverseEngineeringStrategy {
16-
17- private final Map<String, Set<String>> tables = new HashMap<>();
18-
19- public DefaultStrategy(final ReverseEngineeringStrategy delegate) {
20- super(delegate);
21- }
22-
23- @Override
24- public boolean excludeColumn(final TableIdentifier identifier, final String columnName) {
25- Set<String> columns = this.tables.computeIfAbsent(identifier.getName(), k -> new HashSet<>());
26- columns.add(columnName);
27- return super.excludeColumn(identifier, columnName);
28- }
29-
30- @Override
31- public String getTableIdentifierStrategyName(final TableIdentifier identifier) {
32- Set<String> columns = this.tables.get(identifier.getName());
33- if (columns != null) {
34- if (columns.contains("ID") || columns.contains("id")) {
35- return "sequence";
36- }
37- }
38- return null;
39- }
40-
41- @Override
42- public Properties getTableIdentifierProperties(final TableIdentifier identifier) {
43- Properties params = new Properties();
44- String name = identifier.getName();
45- Set<String> columns = this.tables.get(name);
46- if (columns != null) {
47- if (columns.contains("ID") || columns.contains("id")) {
48- if (name.startsWith("ms_") || name.startsWith("MS_")) {
49- params.put("sequence", "sq_master");
50- } else if (name.startsWith("tr_") || name.startsWith("TR_")) {
51- params.put("sequence", "sq_transaction");
52- }
53- }
54- }
55- return params;
56- }
57-
58- @Override
59- public List<String> getPrimaryKeyColumnNames(final TableIdentifier identifier) {
60- List<String> list = new ArrayList<>();
61- list.add("ID");
62- return list;
63- }
64-
65- @Override
66- public String tableToIdentifierPropertyName(final TableIdentifier identifier) {
67- return null;
68- }
69-
70- @Override
71- public String tableToCompositeIdName(final TableIdentifier identifier) {
72- return null;
73- }
74-}
--- trunk/framework/pjDb/src/main/java/project/db/model/FooMaster.java (nonexistent)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FooMaster.java (revision 2408)
@@ -0,0 +1,183 @@
1+package project.db.model;
2+
3+import java.util.Date;
4+
5+import jakarta.persistence.Column;
6+import jakarta.persistence.Entity;
7+import jakarta.persistence.GeneratedValue;
8+import jakarta.persistence.Id;
9+import jakarta.persistence.SequenceGenerator;
10+import jakarta.persistence.Table;
11+import jakarta.persistence.Temporal;
12+import jakarta.persistence.TemporalType;
13+
14+/**
15+ * FooMaster generated by hbm2java
16+ */
17+@org.hibernate.annotations.DynamicInsert
18+@Entity
19+@Table(name = "foo_master")
20+public class FooMaster implements java.io.Serializable {
21+
22+ private Long id;
23+ private String fooId;
24+ private String hooId;
25+ private Date torokuDatetime;
26+ private String fooName;
27+ private String fooAddress;
28+ private String fooPhone;
29+ private int version;
30+ private String insertId;
31+ private Date insertDatetime;
32+ private String updateId;
33+ private Date updateDatetime;
34+
35+ public FooMaster() {
36+ }
37+
38+ public FooMaster(String fooId, String hooId, Date torokuDatetime,
39+ String fooName, int version, String insertId, Date insertDatetime,
40+ String updateId, Date updateDatetime) {
41+ this.fooId = fooId;
42+ this.hooId = hooId;
43+ this.torokuDatetime = torokuDatetime;
44+ this.fooName = fooName;
45+ this.version = version;
46+ this.insertId = insertId;
47+ this.insertDatetime = insertDatetime;
48+ this.updateId = updateId;
49+ this.updateDatetime = updateDatetime;
50+ }
51+
52+ public FooMaster(String fooId, String hooId, Date torokuDatetime,
53+ String fooName, String fooAddress, String fooPhone, int version,
54+ String insertId, Date insertDatetime, String updateId,
55+ Date updateDatetime) {
56+ this.fooId = fooId;
57+ this.hooId = hooId;
58+ this.torokuDatetime = torokuDatetime;
59+ this.fooName = fooName;
60+ this.fooAddress = fooAddress;
61+ this.fooPhone = fooPhone;
62+ this.version = version;
63+ this.insertId = insertId;
64+ this.insertDatetime = insertDatetime;
65+ this.updateId = updateId;
66+ this.updateDatetime = updateDatetime;
67+ }
68+
69+ @Id
70+ @SequenceGenerator(name = "generator", sequenceName = "generator", allocationSize = 1)
71+ @GeneratedValue(generator = "generator")
72+ @Column(name = "id", unique = true, nullable = false)
73+ public Long getId() {
74+ return this.id;
75+ }
76+
77+ public void setId(Long id) {
78+ this.id = id;
79+ }
80+
81+ @Column(name = "foo_id", nullable = false, length = 32)
82+ public String getFooId() {
83+ return this.fooId;
84+ }
85+
86+ public void setFooId(String fooId) {
87+ this.fooId = fooId;
88+ }
89+
90+ @Column(name = "hoo_id", nullable = false, length = 64)
91+ public String getHooId() {
92+ return this.hooId;
93+ }
94+
95+ public void setHooId(String hooId) {
96+ this.hooId = hooId;
97+ }
98+
99+ @Temporal(TemporalType.TIMESTAMP)
100+ @Column(name = "toroku_datetime", nullable = false, length = 29)
101+ public Date getTorokuDatetime() {
102+ return this.torokuDatetime;
103+ }
104+
105+ public void setTorokuDatetime(Date torokuDatetime) {
106+ this.torokuDatetime = torokuDatetime;
107+ }
108+
109+ @Column(name = "foo_name", nullable = false, length = 128)
110+ public String getFooName() {
111+ return this.fooName;
112+ }
113+
114+ public void setFooName(String fooName) {
115+ this.fooName = fooName;
116+ }
117+
118+ @Column(name = "foo_address", length = 256)
119+ public String getFooAddress() {
120+ return this.fooAddress;
121+ }
122+
123+ public void setFooAddress(String fooAddress) {
124+ this.fooAddress = fooAddress;
125+ }
126+
127+ @Column(name = "foo_phone", length = 128)
128+ public String getFooPhone() {
129+ return this.fooPhone;
130+ }
131+
132+ public void setFooPhone(String fooPhone) {
133+ this.fooPhone = fooPhone;
134+ }
135+
136+ @Column(name = "version", nullable = false)
137+ public int getVersion() {
138+ return this.version;
139+ }
140+
141+ public void setVersion(int version) {
142+ this.version = version;
143+ }
144+
145+ @Column(name = "insert_id", nullable = false, length = 32)
146+ public String getInsertId() {
147+ return this.insertId;
148+ }
149+
150+ public void setInsertId(String insertId) {
151+ this.insertId = insertId;
152+ }
153+
154+ @Temporal(TemporalType.TIMESTAMP)
155+ @Column(name = "insert_datetime", nullable = false, length = 29)
156+ public Date getInsertDatetime() {
157+ return this.insertDatetime;
158+ }
159+
160+ public void setInsertDatetime(Date insertDatetime) {
161+ this.insertDatetime = insertDatetime;
162+ }
163+
164+ @Column(name = "update_id", nullable = false, length = 32)
165+ public String getUpdateId() {
166+ return this.updateId;
167+ }
168+
169+ public void setUpdateId(String updateId) {
170+ this.updateId = updateId;
171+ }
172+
173+ @Temporal(TemporalType.TIMESTAMP)
174+ @Column(name = "update_datetime", nullable = false, length = 29)
175+ public Date getUpdateDatetime() {
176+ return this.updateDatetime;
177+ }
178+
179+ public void setUpdateDatetime(Date updateDatetime) {
180+ this.updateDatetime = updateDatetime;
181+ }
182+
183+}
--- trunk/framework/pjDb/src/main/java/project/db/model/FwJobRepeat.java (nonexistent)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FwJobRepeat.java (revision 2408)
@@ -0,0 +1,212 @@
1+package project.db.model;
2+
3+import java.util.Date;
4+
5+import jakarta.persistence.Column;
6+import jakarta.persistence.Entity;
7+import jakarta.persistence.GeneratedValue;
8+import jakarta.persistence.Id;
9+import jakarta.persistence.SequenceGenerator;
10+import jakarta.persistence.Table;
11+import jakarta.persistence.Temporal;
12+import jakarta.persistence.TemporalType;
13+
14+/**
15+ * FwJobRepeat generated by hbm2java
16+ */
17+@org.hibernate.annotations.DynamicInsert
18+@Entity
19+@Table(name = "fw_job_repeat")
20+public class FwJobRepeat implements java.io.Serializable {
21+
22+ private Long id;
23+ private String jobId;
24+ private String jobName;
25+ private String batParam;
26+ private String dispParam;
27+ private String interval;
28+ private String hour;
29+ private String minute;
30+ private String week;
31+ private String yearMonthDay;
32+ private Date insertDatetime;
33+ private String insertId;
34+ private Date updateDatetime;
35+ private String updateId;
36+ private int version;
37+
38+ public FwJobRepeat() {
39+ }
40+
41+ public FwJobRepeat(String jobId, String jobName, Date insertDatetime,
42+ String insertId, Date updateDatetime, String updateId, int version) {
43+ this.jobId = jobId;
44+ this.jobName = jobName;
45+ this.insertDatetime = insertDatetime;
46+ this.insertId = insertId;
47+ this.updateDatetime = updateDatetime;
48+ this.updateId = updateId;
49+ this.version = version;
50+ }
51+
52+ public FwJobRepeat(String jobId, String jobName, String batParam,
53+ String dispParam, String interval, String hour, String minute,
54+ String week, String yearMonthDay, Date insertDatetime,
55+ String insertId, Date updateDatetime, String updateId, int version) {
56+ this.jobId = jobId;
57+ this.jobName = jobName;
58+ this.batParam = batParam;
59+ this.dispParam = dispParam;
60+ this.interval = interval;
61+ this.hour = hour;
62+ this.minute = minute;
63+ this.week = week;
64+ this.yearMonthDay = yearMonthDay;
65+ this.insertDatetime = insertDatetime;
66+ this.insertId = insertId;
67+ this.updateDatetime = updateDatetime;
68+ this.updateId = updateId;
69+ this.version = version;
70+ }
71+
72+ @Id
73+ @SequenceGenerator(name = "generator", sequenceName = "generator", allocationSize = 1)
74+ @GeneratedValue(generator = "generator")
75+ @Column(name = "id", unique = true, nullable = false)
76+ public Long getId() {
77+ return this.id;
78+ }
79+
80+ public void setId(Long id) {
81+ this.id = id;
82+ }
83+
84+ @Column(name = "job_id", nullable = false, length = 32)
85+ public String getJobId() {
86+ return this.jobId;
87+ }
88+
89+ public void setJobId(String jobId) {
90+ this.jobId = jobId;
91+ }
92+
93+ @Column(name = "job_name", nullable = false, length = 128)
94+ public String getJobName() {
95+ return this.jobName;
96+ }
97+
98+ public void setJobName(String jobName) {
99+ this.jobName = jobName;
100+ }
101+
102+ @Column(name = "bat_param", length = 512)
103+ public String getBatParam() {
104+ return this.batParam;
105+ }
106+
107+ public void setBatParam(String batParam) {
108+ this.batParam = batParam;
109+ }
110+
111+ @Column(name = "disp_param", length = 512)
112+ public String getDispParam() {
113+ return this.dispParam;
114+ }
115+
116+ public void setDispParam(String dispParam) {
117+ this.dispParam = dispParam;
118+ }
119+
120+ @Column(name = "interval", length = 8)
121+ public String getInterval() {
122+ return this.interval;
123+ }
124+
125+ public void setInterval(String interval) {
126+ this.interval = interval;
127+ }
128+
129+ @Column(name = "hour", length = 2)
130+ public String getHour() {
131+ return this.hour;
132+ }
133+
134+ public void setHour(String hour) {
135+ this.hour = hour;
136+ }
137+
138+ @Column(name = "minute", length = 2)
139+ public String getMinute() {
140+ return this.minute;
141+ }
142+
143+ public void setMinute(String minute) {
144+ this.minute = minute;
145+ }
146+
147+ @Column(name = "week", length = 1)
148+ public String getWeek() {
149+ return this.week;
150+ }
151+
152+ public void setWeek(String week) {
153+ this.week = week;
154+ }
155+
156+ @Column(name = "year_month_day", length = 8)
157+ public String getYearMonthDay() {
158+ return this.yearMonthDay;
159+ }
160+
161+ public void setYearMonthDay(String yearMonthDay) {
162+ this.yearMonthDay = yearMonthDay;
163+ }
164+
165+ @Temporal(TemporalType.TIMESTAMP)
166+ @Column(name = "insert_datetime", nullable = false, length = 29)
167+ public Date getInsertDatetime() {
168+ return this.insertDatetime;
169+ }
170+
171+ public void setInsertDatetime(Date insertDatetime) {
172+ this.insertDatetime = insertDatetime;
173+ }
174+
175+ @Column(name = "insert_id", nullable = false, length = 32)
176+ public String getInsertId() {
177+ return this.insertId;
178+ }
179+
180+ public void setInsertId(String insertId) {
181+ this.insertId = insertId;
182+ }
183+
184+ @Temporal(TemporalType.TIMESTAMP)
185+ @Column(name = "update_datetime", nullable = false, length = 29)
186+ public Date getUpdateDatetime() {
187+ return this.updateDatetime;
188+ }
189+
190+ public void setUpdateDatetime(Date updateDatetime) {
191+ this.updateDatetime = updateDatetime;
192+ }
193+
194+ @Column(name = "update_id", nullable = false, length = 32)
195+ public String getUpdateId() {
196+ return this.updateId;
197+ }
198+
199+ public void setUpdateId(String updateId) {
200+ this.updateId = updateId;
201+ }
202+
203+ @Column(name = "version", nullable = false)
204+ public int getVersion() {
205+ return this.version;
206+ }
207+
208+ public void setVersion(int version) {
209+ this.version = version;
210+ }
211+
212+}
--- trunk/framework/pjDb/src/main/java/project/db/model/FwJobBase.java (nonexistent)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FwJobBase.java (revision 2408)
@@ -0,0 +1,185 @@
1+package project.db.model;
2+
3+import java.util.Date;
4+
5+import jakarta.persistence.Column;
6+import jakarta.persistence.Entity;
7+import jakarta.persistence.Id;
8+import jakarta.persistence.Table;
9+import jakarta.persistence.Temporal;
10+import jakarta.persistence.TemporalType;
11+
12+/**
13+ * FwJobBase generated by hbm2java
14+ */
15+@org.hibernate.annotations.DynamicInsert
16+@Entity
17+@Table(name = "fw_job_base")
18+public class FwJobBase implements java.io.Serializable {
19+
20+ private long jobSeq;
21+ private String jobId;
22+ private String jobName;
23+ private String entryUserId;
24+ private Date entryDateTime;
25+ private String entryIp;
26+ private String jobParam;
27+ private String batParam;
28+ private String dispParam;
29+ private String execHost;
30+ private int status;
31+ private String message;
32+ private String remark;
33+
34+ public FwJobBase() {
35+ }
36+
37+ public FwJobBase(long jobSeq, String jobId, String jobName,
38+ String entryUserId, Date entryDateTime, int status) {
39+ this.jobSeq = jobSeq;
40+ this.jobId = jobId;
41+ this.jobName = jobName;
42+ this.entryUserId = entryUserId;
43+ this.entryDateTime = entryDateTime;
44+ this.status = status;
45+ }
46+
47+ public FwJobBase(long jobSeq, String jobId, String jobName,
48+ String entryUserId, Date entryDateTime, String entryIp,
49+ String jobParam, String batParam, String dispParam,
50+ String execHost, int status, String message, String remark) {
51+ this.jobSeq = jobSeq;
52+ this.jobId = jobId;
53+ this.jobName = jobName;
54+ this.entryUserId = entryUserId;
55+ this.entryDateTime = entryDateTime;
56+ this.entryIp = entryIp;
57+ this.jobParam = jobParam;
58+ this.batParam = batParam;
59+ this.dispParam = dispParam;
60+ this.execHost = execHost;
61+ this.status = status;
62+ this.message = message;
63+ this.remark = remark;
64+ }
65+
66+ @Id
67+ @Column(name = "job_seq", unique = true, nullable = false)
68+ public long getJobSeq() {
69+ return this.jobSeq;
70+ }
71+
72+ public void setJobSeq(long jobSeq) {
73+ this.jobSeq = jobSeq;
74+ }
75+
76+ @Column(name = "job_id", nullable = false, length = 32)
77+ public String getJobId() {
78+ return this.jobId;
79+ }
80+
81+ public void setJobId(String jobId) {
82+ this.jobId = jobId;
83+ }
84+
85+ @Column(name = "job_name", nullable = false, length = 128)
86+ public String getJobName() {
87+ return this.jobName;
88+ }
89+
90+ public void setJobName(String jobName) {
91+ this.jobName = jobName;
92+ }
93+
94+ @Column(name = "entry_user_id", nullable = false, length = 64)
95+ public String getEntryUserId() {
96+ return this.entryUserId;
97+ }
98+
99+ public void setEntryUserId(String entryUserId) {
100+ this.entryUserId = entryUserId;
101+ }
102+
103+ @Temporal(TemporalType.TIMESTAMP)
104+ @Column(name = "entry_date_time", nullable = false, length = 29)
105+ public Date getEntryDateTime() {
106+ return this.entryDateTime;
107+ }
108+
109+ public void setEntryDateTime(Date entryDateTime) {
110+ this.entryDateTime = entryDateTime;
111+ }
112+
113+ @Column(name = "entry_ip", length = 64)
114+ public String getEntryIp() {
115+ return this.entryIp;
116+ }
117+
118+ public void setEntryIp(String entryIp) {
119+ this.entryIp = entryIp;
120+ }
121+
122+ @Column(name = "job_param", length = 128)
123+ public String getJobParam() {
124+ return this.jobParam;
125+ }
126+
127+ public void setJobParam(String jobParam) {
128+ this.jobParam = jobParam;
129+ }
130+
131+ @Column(name = "bat_param", length = 512)
132+ public String getBatParam() {
133+ return this.batParam;
134+ }
135+
136+ public void setBatParam(String batParam) {
137+ this.batParam = batParam;
138+ }
139+
140+ @Column(name = "disp_param", length = 512)
141+ public String getDispParam() {
142+ return this.dispParam;
143+ }
144+
145+ public void setDispParam(String dispParam) {
146+ this.dispParam = dispParam;
147+ }
148+
149+ @Column(name = "exec_host", length = 64)
150+ public String getExecHost() {
151+ return this.execHost;
152+ }
153+
154+ public void setExecHost(String execHost) {
155+ this.execHost = execHost;
156+ }
157+
158+ @Column(name = "status", nullable = false)
159+ public int getStatus() {
160+ return this.status;
161+ }
162+
163+ public void setStatus(int status) {
164+ this.status = status;
165+ }
166+
167+ @Column(name = "message", length = 512)
168+ public String getMessage() {
169+ return this.message;
170+ }
171+
172+ public void setMessage(String message) {
173+ this.message = message;
174+ }
175+
176+ @Column(name = "remark", length = 256)
177+ public String getRemark() {
178+ return this.remark;
179+ }
180+
181+ public void setRemark(String remark) {
182+ this.remark = remark;
183+ }
184+
185+}
--- trunk/framework/pjDb/src/main/java/project/db/model/FwJobDetail.java (nonexistent)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FwJobDetail.java (revision 2408)
@@ -0,0 +1,121 @@
1+package project.db.model;
2+
3+import java.util.Date;
4+
5+import jakarta.persistence.AttributeOverride;
6+import jakarta.persistence.AttributeOverrides;
7+import jakarta.persistence.Column;
8+import jakarta.persistence.EmbeddedId;
9+import jakarta.persistence.Entity;
10+import jakarta.persistence.Table;
11+import jakarta.persistence.Temporal;
12+import jakarta.persistence.TemporalType;
13+
14+/**
15+ * FwJobDetail generated by hbm2java
16+ */
17+@org.hibernate.annotations.DynamicInsert
18+@Entity
19+@Table(name = "fw_job_detail")
20+public class FwJobDetail implements java.io.Serializable {
21+
22+ private FwJobDetailId id;
23+ private String batName;
24+ private int pid;
25+ private int status;
26+ private Date startDateTime;
27+ private Date stopDateTime;
28+ private String message;
29+
30+ public FwJobDetail() {
31+ }
32+
33+ public FwJobDetail(FwJobDetailId id, String batName, int pid, int status,
34+ Date startDateTime) {
35+ this.id = id;
36+ this.batName = batName;
37+ this.pid = pid;
38+ this.status = status;
39+ this.startDateTime = startDateTime;
40+ }
41+
42+ public FwJobDetail(FwJobDetailId id, String batName, int pid, int status,
43+ Date startDateTime, Date stopDateTime, String message) {
44+ this.id = id;
45+ this.batName = batName;
46+ this.pid = pid;
47+ this.status = status;
48+ this.startDateTime = startDateTime;
49+ this.stopDateTime = stopDateTime;
50+ this.message = message;
51+ }
52+
53+ @EmbeddedId
54+ @AttributeOverrides({
55+ @AttributeOverride(name = "jobSeq", column = @Column(name = "job_seq", nullable = false)),
56+ @AttributeOverride(name = "batSeq", column = @Column(name = "bat_seq", nullable = false)) })
57+ public FwJobDetailId getId() {
58+ return this.id;
59+ }
60+
61+ public void setId(FwJobDetailId id) {
62+ this.id = id;
63+ }
64+
65+ @Column(name = "bat_name", nullable = false, length = 128)
66+ public String getBatName() {
67+ return this.batName;
68+ }
69+
70+ public void setBatName(String batName) {
71+ this.batName = batName;
72+ }
73+
74+ @Column(name = "pid", nullable = false)
75+ public int getPid() {
76+ return this.pid;
77+ }
78+
79+ public void setPid(int pid) {
80+ this.pid = pid;
81+ }
82+
83+ @Column(name = "status", nullable = false)
84+ public int getStatus() {
85+ return this.status;
86+ }
87+
88+ public void setStatus(int status) {
89+ this.status = status;
90+ }
91+
92+ @Temporal(TemporalType.TIMESTAMP)
93+ @Column(name = "start_date_time", nullable = false, length = 29)
94+ public Date getStartDateTime() {
95+ return this.startDateTime;
96+ }
97+
98+ public void setStartDateTime(Date startDateTime) {
99+ this.startDateTime = startDateTime;
100+ }
101+
102+ @Temporal(TemporalType.TIMESTAMP)
103+ @Column(name = "stop_date_time", length = 29)
104+ public Date getStopDateTime() {
105+ return this.stopDateTime;
106+ }
107+
108+ public void setStopDateTime(Date stopDateTime) {
109+ this.stopDateTime = stopDateTime;
110+ }
111+
112+ @Column(name = "message", length = 512)
113+ public String getMessage() {
114+ return this.message;
115+ }
116+
117+ public void setMessage(String message) {
118+ this.message = message;
119+ }
120+
121+}
--- trunk/framework/pjDb/src/main/java/project/db/model/FwJobDetailId.java (nonexistent)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FwJobDetailId.java (revision 2408)
@@ -0,0 +1,62 @@
1+package project.db.model;
2+
3+import jakarta.persistence.Column;
4+import jakarta.persistence.Embeddable;
5+
6+/**
7+ * FwJobDetailId generated by hbm2java
8+ */
9+@Embeddable
10+public class FwJobDetailId implements java.io.Serializable {
11+
12+ private long jobSeq;
13+ private int batSeq;
14+
15+ public FwJobDetailId() {
16+ }
17+
18+ public FwJobDetailId(long jobSeq, int batSeq) {
19+ this.jobSeq = jobSeq;
20+ this.batSeq = batSeq;
21+ }
22+
23+ @Column(name = "job_seq", nullable = false)
24+ public long getJobSeq() {
25+ return this.jobSeq;
26+ }
27+
28+ public void setJobSeq(long jobSeq) {
29+ this.jobSeq = jobSeq;
30+ }
31+
32+ @Column(name = "bat_seq", nullable = false)
33+ public int getBatSeq() {
34+ return this.batSeq;
35+ }
36+
37+ public void setBatSeq(int batSeq) {
38+ this.batSeq = batSeq;
39+ }
40+
41+ public boolean equals(Object other) {
42+ if ((this == other))
43+ return true;
44+ if ((other == null))
45+ return false;
46+ if (!(other instanceof FwJobDetailId))
47+ return false;
48+ FwJobDetailId castOther = (FwJobDetailId) other;
49+
50+ return (this.getJobSeq() == castOther.getJobSeq())
51+ && (this.getBatSeq() == castOther.getBatSeq());
52+ }
53+
54+ public int hashCode() {
55+ int result = 17;
56+
57+ result = 37 * result + (int) this.getJobSeq();
58+ result = 37 * result + this.getBatSeq();
59+ return result;
60+ }
61+
62+}
--- trunk/framework/pjDb/src/main/java/project/db/model/FwJobFile.java (nonexistent)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FwJobFile.java (revision 2408)
@@ -0,0 +1,102 @@
1+package project.db.model;
2+
3+import jakarta.persistence.AttributeOverride;
4+import jakarta.persistence.AttributeOverrides;
5+import jakarta.persistence.Column;
6+import jakarta.persistence.EmbeddedId;
7+import jakarta.persistence.Entity;
8+import jakarta.persistence.Table;
9+
10+/**
11+ * FwJobFile generated by hbm2java
12+ */
13+@org.hibernate.annotations.DynamicInsert
14+@Entity
15+@Table(name = "fw_job_file")
16+public class FwJobFile implements java.io.Serializable {
17+
18+ private FwJobFileId id;
19+ private String fileName;
20+ private String filePath;
21+ private Long fileSize;
22+ private String downloadName;
23+ private int downloadCount;
24+
25+ public FwJobFile() {
26+ }
27+
28+ public FwJobFile(FwJobFileId id, String fileName, int downloadCount) {
29+ this.id = id;
30+ this.fileName = fileName;
31+ this.downloadCount = downloadCount;
32+ }
33+
34+ public FwJobFile(FwJobFileId id, String fileName, String filePath,
35+ Long fileSize, String downloadName, int downloadCount) {
36+ this.id = id;
37+ this.fileName = fileName;
38+ this.filePath = filePath;
39+ this.fileSize = fileSize;
40+ this.downloadName = downloadName;
41+ this.downloadCount = downloadCount;
42+ }
43+
44+ @EmbeddedId
45+ @AttributeOverrides({
46+ @AttributeOverride(name = "jobSeq", column = @Column(name = "job_seq", nullable = false)),
47+ @AttributeOverride(name = "batSeq", column = @Column(name = "bat_seq", nullable = false)),
48+ @AttributeOverride(name = "fileSeq", column = @Column(name = "file_seq", nullable = false)) })
49+ public FwJobFileId getId() {
50+ return this.id;
51+ }
52+
53+ public void setId(FwJobFileId id) {
54+ this.id = id;
55+ }
56+
57+ @Column(name = "file_name", nullable = false, length = 128)
58+ public String getFileName() {
59+ return this.fileName;
60+ }
61+
62+ public void setFileName(String fileName) {
63+ this.fileName = fileName;
64+ }
65+
66+ @Column(name = "file_path", length = 256)
67+ public String getFilePath() {
68+ return this.filePath;
69+ }
70+
71+ public void setFilePath(String filePath) {
72+ this.filePath = filePath;
73+ }
74+
75+ @Column(name = "file_size")
76+ public Long getFileSize() {
77+ return this.fileSize;
78+ }
79+
80+ public void setFileSize(Long fileSize) {
81+ this.fileSize = fileSize;
82+ }
83+
84+ @Column(name = "download_name", length = 128)
85+ public String getDownloadName() {
86+ return this.downloadName;
87+ }
88+
89+ public void setDownloadName(String downloadName) {
90+ this.downloadName = downloadName;
91+ }
92+
93+ @Column(name = "download_count", nullable = false)
94+ public int getDownloadCount() {
95+ return this.downloadCount;
96+ }
97+
98+ public void setDownloadCount(int downloadCount) {
99+ this.downloadCount = downloadCount;
100+ }
101+
102+}
--- trunk/framework/pjDb/src/main/java/project/db/model/FwJobFileId.java (nonexistent)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FwJobFileId.java (revision 2408)
@@ -0,0 +1,75 @@
1+package project.db.model;
2+
3+import jakarta.persistence.Column;
4+import jakarta.persistence.Embeddable;
5+
6+/**
7+ * FwJobFileId generated by hbm2java
8+ */
9+@Embeddable
10+public class FwJobFileId implements java.io.Serializable {
11+
12+ private long jobSeq;
13+ private int batSeq;
14+ private int fileSeq;
15+
16+ public FwJobFileId() {
17+ }
18+
19+ public FwJobFileId(long jobSeq, int batSeq, int fileSeq) {
20+ this.jobSeq = jobSeq;
21+ this.batSeq = batSeq;
22+ this.fileSeq = fileSeq;
23+ }
24+
25+ @Column(name = "job_seq", nullable = false)
26+ public long getJobSeq() {
27+ return this.jobSeq;
28+ }
29+
30+ public void setJobSeq(long jobSeq) {
31+ this.jobSeq = jobSeq;
32+ }
33+
34+ @Column(name = "bat_seq", nullable = false)
35+ public int getBatSeq() {
36+ return this.batSeq;
37+ }
38+
39+ public void setBatSeq(int batSeq) {
40+ this.batSeq = batSeq;
41+ }
42+
43+ @Column(name = "file_seq", nullable = false)
44+ public int getFileSeq() {
45+ return this.fileSeq;
46+ }
47+
48+ public void setFileSeq(int fileSeq) {
49+ this.fileSeq = fileSeq;
50+ }
51+
52+ public boolean equals(Object other) {
53+ if ((this == other))
54+ return true;
55+ if ((other == null))
56+ return false;
57+ if (!(other instanceof FwJobFileId))
58+ return false;
59+ FwJobFileId castOther = (FwJobFileId) other;
60+
61+ return (this.getJobSeq() == castOther.getJobSeq())
62+ && (this.getBatSeq() == castOther.getBatSeq())
63+ && (this.getFileSeq() == castOther.getFileSeq());
64+ }
65+
66+ public int hashCode() {
67+ int result = 17;
68+
69+ result = 37 * result + (int) this.getJobSeq();
70+ result = 37 * result + this.getBatSeq();
71+ result = 37 * result + this.getFileSeq();
72+ return result;
73+ }
74+
75+}
--- trunk/framework/pjDb/src/test/java/common/db/dao/hibernate/reveng/DefaultStrategy.java (nonexistent)
+++ trunk/framework/pjDb/src/test/java/common/db/dao/hibernate/reveng/DefaultStrategy.java (revision 2408)
@@ -0,0 +1,69 @@
1+package common.db.dao.hibernate.reveng;
2+
3+import java.util.ArrayList;
4+import java.util.HashMap;
5+import java.util.HashSet;
6+import java.util.List;
7+import java.util.Map;
8+import java.util.Properties;
9+import java.util.Set;
10+
11+import org.hibernate.tool.api.reveng.TableIdentifier;
12+import org.hibernate.tool.internal.reveng.strategy.AbstractStrategy;
13+
14+public final class DefaultStrategy extends AbstractStrategy {
15+
16+ private final Map<String, Set<String>> tables = new HashMap<>();
17+
18+ @Override
19+ public boolean excludeColumn(final TableIdentifier identifier, final String columnName) {
20+ Set<String> columns = this.tables.computeIfAbsent(identifier.getName(), k -> new HashSet<>());
21+ columns.add(columnName);
22+ return super.excludeColumn(identifier, columnName);
23+ }
24+
25+ @Override
26+ public String getTableIdentifierStrategyName(final TableIdentifier identifier) {
27+ Set<String> columns = this.tables.get(identifier.getName());
28+ if (columns != null) {
29+ if (columns.contains("ID") || columns.contains("id")) {
30+ return "sequence";
31+ }
32+ }
33+ return null;
34+ }
35+
36+ @Override
37+ public Properties getTableIdentifierProperties(final TableIdentifier identifier) {
38+ Properties params = new Properties();
39+ String name = identifier.getName();
40+ Set<String> columns = this.tables.get(name);
41+ if (columns != null) {
42+ if (columns.contains("ID") || columns.contains("id")) {
43+ if (name.startsWith("ms_") || name.startsWith("MS_")) {
44+ params.put("sequence", "sq_master");
45+ } else if (name.startsWith("tr_") || name.startsWith("TR_")) {
46+ params.put("sequence", "sq_transaction");
47+ }
48+ }
49+ }
50+ return params;
51+ }
52+
53+ @Override
54+ public List<String> getPrimaryKeyColumnNames(final TableIdentifier identifier) {
55+ List<String> list = new ArrayList<>();
56+ list.add("ID");
57+ return list;
58+ }
59+
60+ @Override
61+ public String tableToIdentifierPropertyName(final TableIdentifier identifier) {
62+ return null;
63+ }
64+
65+ @Override
66+ public String tableToCompositeIdName(final TableIdentifier identifier) {
67+ return null;
68+ }
69+}