• 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

Revision2416 (tree)
Time2022-10-05 19:20:13
Authort_nakayama1971

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/framework/pjDb/src/main/java/project/db/model/FooMaster.java (revision 2415)
+++ trunk/framework/pjDb/src/main/java/project/db/model/FooMaster.java (revision 2416)
@@ -1,149 +1,144 @@
1-package project.db.model;
2-
3-import java.util.Date;
4-
1+package project.db.model;
2+
53 import jakarta.persistence.Column;
64 import jakarta.persistence.Entity;
75 import jakarta.persistence.GeneratedValue;
6+import static jakarta.persistence.GenerationType.SEQUENCE;
87 import jakarta.persistence.Id;
98 import jakarta.persistence.SequenceGenerator;
109 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- @Id
36- @SequenceGenerator(name = "generator", sequenceName = "generator", allocationSize = 1)
37- @GeneratedValue(generator = "generator")
38- @Column(name = "id", unique = true, nullable = false)
39- public Long getId() {
40- return this.id;
41- }
42-
43- public void setId(Long id) {
44- this.id = id;
45- }
46-
47- @Column(name = "foo_id", nullable = false, length = 32)
48- public String getFooId() {
49- return this.fooId;
50- }
51-
52- public void setFooId(String fooId) {
53- this.fooId = fooId;
54- }
55-
56- @Column(name = "hoo_id", nullable = false, length = 64)
57- public String getHooId() {
58- return this.hooId;
59- }
60-
61- public void setHooId(String hooId) {
62- this.hooId = hooId;
63- }
64-
65- @Temporal(TemporalType.TIMESTAMP)
66- @Column(name = "toroku_datetime", nullable = false, length = 29)
67- public Date getTorokuDatetime() {
68- return this.torokuDatetime;
69- }
70-
71- public void setTorokuDatetime(Date torokuDatetime) {
72- this.torokuDatetime = torokuDatetime;
73- }
74-
75- @Column(name = "foo_name", nullable = false, length = 128)
76- public String getFooName() {
77- return this.fooName;
78- }
79-
80- public void setFooName(String fooName) {
81- this.fooName = fooName;
82- }
83-
84- @Column(name = "foo_address", length = 256)
85- public String getFooAddress() {
86- return this.fooAddress;
87- }
88-
89- public void setFooAddress(String fooAddress) {
90- this.fooAddress = fooAddress;
91- }
92-
93- @Column(name = "foo_phone", length = 128)
94- public String getFooPhone() {
95- return this.fooPhone;
96- }
97-
98- public void setFooPhone(String fooPhone) {
99- this.fooPhone = fooPhone;
100- }
101-
102- @Column(name = "version", nullable = false)
103- public int getVersion() {
104- return this.version;
105- }
106-
107- public void setVersion(int version) {
108- this.version = version;
109- }
110-
111- @Column(name = "insert_id", nullable = false, length = 32)
112- public String getInsertId() {
113- return this.insertId;
114- }
115-
116- public void setInsertId(String insertId) {
117- this.insertId = insertId;
118- }
119-
120- @Temporal(TemporalType.TIMESTAMP)
121- @Column(name = "insert_datetime", nullable = false, length = 29)
122- public Date getInsertDatetime() {
123- return this.insertDatetime;
124- }
125-
126- public void setInsertDatetime(Date insertDatetime) {
127- this.insertDatetime = insertDatetime;
128- }
129-
130- @Column(name = "update_id", nullable = false, length = 32)
131- public String getUpdateId() {
132- return this.updateId;
133- }
134-
135- public void setUpdateId(String updateId) {
136- this.updateId = updateId;
137- }
138-
139- @Temporal(TemporalType.TIMESTAMP)
140- @Column(name = "update_datetime", nullable = false, length = 29)
141- public Date getUpdateDatetime() {
142- return this.updateDatetime;
143- }
144-
145- public void setUpdateDatetime(Date updateDatetime) {
146- this.updateDatetime = updateDatetime;
147- }
148-
149-}
10+import java.sql.Timestamp;
11+
12+/**
13+ * FooMaster generated by hbm2java
14+ */
15+@org.hibernate.annotations.DynamicInsert
16+@Entity
17+@Table(name="foo_master"
18+)
19+public class FooMaster implements java.io.Serializable {
20+
21+ private Long id;
22+ private String fooId;
23+ private String hooId;
24+ private Timestamp torokuDatetime;
25+ private String fooName;
26+ private String fooAddress;
27+ private String fooPhone;
28+ private int version;
29+ private String insertId;
30+ private Timestamp insertDatetime;
31+ private String updateId;
32+ private Timestamp updateDatetime;
33+
34+ @SequenceGenerator(name="project.db.model.FooMasterIdGenerator", sequenceName="generator", allocationSize=1)
35+ @Id
36+ @GeneratedValue(strategy=SEQUENCE, generator="project.db.model.FooMasterIdGenerator")
37+ @Column(name="id", unique=true, nullable=false)
38+ public Long getId() {
39+ return this.id;
40+ }
41+
42+ public void setId(Long id) {
43+ this.id = id;
44+ }
45+
46+ @Column(name="foo_id", nullable=false, length=32)
47+ public String getFooId() {
48+ return this.fooId;
49+ }
50+
51+ public void setFooId(String fooId) {
52+ this.fooId = fooId;
53+ }
54+
55+ @Column(name="hoo_id", nullable=false, length=64)
56+ public String getHooId() {
57+ return this.hooId;
58+ }
59+
60+ public void setHooId(String hooId) {
61+ this.hooId = hooId;
62+ }
63+
64+ @Column(name="toroku_datetime", nullable=false, length=29)
65+ public Timestamp getTorokuDatetime() {
66+ return this.torokuDatetime;
67+ }
68+
69+ public void setTorokuDatetime(Timestamp torokuDatetime) {
70+ this.torokuDatetime = torokuDatetime;
71+ }
72+
73+ @Column(name="foo_name", nullable=false, length=128)
74+ public String getFooName() {
75+ return this.fooName;
76+ }
77+
78+ public void setFooName(String fooName) {
79+ this.fooName = fooName;
80+ }
81+
82+ @Column(name="foo_address", length=256)
83+ public String getFooAddress() {
84+ return this.fooAddress;
85+ }
86+
87+ public void setFooAddress(String fooAddress) {
88+ this.fooAddress = fooAddress;
89+ }
90+
91+ @Column(name="foo_phone", length=128)
92+ public String getFooPhone() {
93+ return this.fooPhone;
94+ }
95+
96+ public void setFooPhone(String fooPhone) {
97+ this.fooPhone = fooPhone;
98+ }
99+
100+ @Column(name="version", nullable=false)
101+ public int getVersion() {
102+ return this.version;
103+ }
104+
105+ public void setVersion(int version) {
106+ this.version = version;
107+ }
108+
109+ @Column(name="insert_id", nullable=false, length=32)
110+ public String getInsertId() {
111+ return this.insertId;
112+ }
113+
114+ public void setInsertId(String insertId) {
115+ this.insertId = insertId;
116+ }
117+
118+ @Column(name="insert_datetime", nullable=false, length=29)
119+ public Timestamp getInsertDatetime() {
120+ return this.insertDatetime;
121+ }
122+
123+ public void setInsertDatetime(Timestamp insertDatetime) {
124+ this.insertDatetime = insertDatetime;
125+ }
126+
127+ @Column(name="update_id", nullable=false, length=32)
128+ public String getUpdateId() {
129+ return this.updateId;
130+ }
131+
132+ public void setUpdateId(String updateId) {
133+ this.updateId = updateId;
134+ }
135+
136+ @Column(name="update_datetime", nullable=false, length=29)
137+ public Timestamp getUpdateDatetime() {
138+ return this.updateDatetime;
139+ }
140+
141+ public void setUpdateDatetime(Timestamp updateDatetime) {
142+ this.updateDatetime = updateDatetime;
143+ }
144+}
--- trunk/framework/pjDb/src/test/java/common/db/dao/hibernate/reveng/DefaultStrategy.java (revision 2415)
+++ trunk/framework/pjDb/src/test/java/common/db/dao/hibernate/reveng/DefaultStrategy.java (revision 2416)
@@ -50,6 +50,7 @@
5050 Set<String> columns = this.tables.get(name);
5151 if (columns != null) {
5252 if (columns.contains("ID") || columns.contains("id")) {
53+ params.put("allocationSize", Integer.valueOf(1));
5354 if (name.startsWith("ms_") || name.startsWith("MS_")) {
5455 params.put(SequenceStyleGenerator.SEQUENCE_PARAM, "sq_master");
5556 } else if (name.startsWith("tr_") || name.startsWith("TR_")) {