Revision 15:51e985e302fb
src/main/java/my/com/upass/UserMasterBean.java | ||
---|---|---|
1 |
package my.com.upass; |
|
2 |
|
|
3 |
public class UserMasterBean { |
|
4 |
private long userID; |
|
5 |
private String userAlias; |
|
6 |
|
|
7 |
public long getUserID() { |
|
8 |
return userID; |
|
9 |
} |
|
10 |
public void setUserID(long userID) { |
|
11 |
this.userID = userID; |
|
12 |
} |
|
13 |
public String getUserAlias() { |
|
14 |
return userAlias; |
|
15 |
} |
|
16 |
public void setUserAlias(String userAlias) { |
|
17 |
this.userAlias = userAlias; |
|
18 |
} |
|
19 |
|
|
20 |
} |
src/main/java/my/com/upass/pojo/AppAccessBean.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2010 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
package my.com.upass.pojo; |
|
12 |
|
|
13 |
import java.io.Serializable; |
|
14 |
|
|
15 |
/** |
|
16 |
* PROGRAMMER: Danniell |
|
17 |
* CHANGE-NO: |
|
18 |
* TASK-NO: |
|
19 |
* DATE CREATED: Oct 8, 2011 |
|
20 |
* TAG AS: |
|
21 |
* REASON(S): |
|
22 |
* MODIFICATION: |
|
23 |
*/ |
|
24 |
|
|
25 |
/** |
|
26 |
* <Class description> |
|
27 |
*/ |
|
28 |
public class AppAccessBean implements Serializable |
|
29 |
{ |
|
30 |
private static final long serialVersionUID = 1L; |
|
31 |
|
|
32 |
private String aappServId; |
|
33 |
private String aappServAccess1; |
|
34 |
private String aappServAccess2; |
|
35 |
private String aappServAuthList; |
|
36 |
private MinimalUserBean tbAmUser; |
|
37 |
|
|
38 |
/** |
|
39 |
* @return the aappServId |
|
40 |
*/ |
|
41 |
public String getAappServId () |
|
42 |
{ |
|
43 |
return aappServId; |
|
44 |
} |
|
45 |
/** |
|
46 |
* @param aappServId the aappServId to set |
|
47 |
*/ |
|
48 |
public void setAappServId (String aappServId) |
|
49 |
{ |
|
50 |
this.aappServId = aappServId; |
|
51 |
} |
|
52 |
/** |
|
53 |
* @return the aappServAccess1 |
|
54 |
*/ |
|
55 |
public String getAappServAccess1 () |
|
56 |
{ |
|
57 |
return aappServAccess1; |
|
58 |
} |
|
59 |
/** |
|
60 |
* @param aappServAccess1 the aappServAccess1 to set |
|
61 |
*/ |
|
62 |
public void setAappServAccess1 (String aappServAccess1) |
|
63 |
{ |
|
64 |
this.aappServAccess1 = aappServAccess1; |
|
65 |
} |
|
66 |
/** |
|
67 |
* @return the aappServAccess2 |
|
68 |
*/ |
|
69 |
public String getAappServAccess2 () |
|
70 |
{ |
|
71 |
return aappServAccess2; |
|
72 |
} |
|
73 |
/** |
|
74 |
* @param aappServAccess2 the aappServAccess2 to set |
|
75 |
*/ |
|
76 |
public void setAappServAccess2 (String aappServAccess2) |
|
77 |
{ |
|
78 |
this.aappServAccess2 = aappServAccess2; |
|
79 |
} |
|
80 |
/** |
|
81 |
* @return the aappServAuthList |
|
82 |
*/ |
|
83 |
public String getAappServAuthList () |
|
84 |
{ |
|
85 |
return aappServAuthList; |
|
86 |
} |
|
87 |
/** |
|
88 |
* @param aappServAuthList the aappServAuthList to set |
|
89 |
*/ |
|
90 |
public void setAappServAuthList (String aappServAuthList) |
|
91 |
{ |
|
92 |
this.aappServAuthList = aappServAuthList; |
|
93 |
} |
|
94 |
/** |
|
95 |
* @return the tbAmUser |
|
96 |
*/ |
|
97 |
public MinimalUserBean getTbAmUser () |
|
98 |
{ |
|
99 |
return tbAmUser; |
|
100 |
} |
|
101 |
/** |
|
102 |
* @param tbAmUser the tbAmUser to set |
|
103 |
*/ |
|
104 |
public void setTbAmUser (MinimalUserBean tbAmUser) |
|
105 |
{ |
|
106 |
this.tbAmUser = tbAmUser; |
|
107 |
} |
|
108 |
} |
src/main/java/my/com/upass/pojo/SecurityCodeBean.java | ||
---|---|---|
1 |
/** |
|
2 |
* |
|
3 |
*/ |
|
4 |
|
|
5 |
package my.com.upass.pojo; |
|
6 |
|
|
7 |
import java.util.Date; |
|
8 |
|
|
9 |
/** |
|
10 |
* @author Administrator |
|
11 |
* |
|
12 |
*/ |
|
13 |
public class SecurityCodeBean |
|
14 |
{ |
|
15 |
|
|
16 |
private long scOid; |
|
17 |
private String scCipherText; |
|
18 |
private int scState; |
|
19 |
private Date scDateCreated; |
|
20 |
private Date scDateFirstUsed; |
|
21 |
private Date scDateLastUsed; |
|
22 |
private int scUseCount; |
|
23 |
private int scErrorCount; |
|
24 |
private String scReferenceId; //e.g. CIF |
|
25 |
|
|
26 |
public SecurityCodeBean () |
|
27 |
{ |
|
28 |
// super(); |
|
29 |
} |
|
30 |
|
|
31 |
/** |
|
32 |
* @return the scOid |
|
33 |
*/ |
|
34 |
public long getScOid () |
|
35 |
{ |
|
36 |
return scOid; |
|
37 |
} |
|
38 |
|
|
39 |
/** |
|
40 |
* @param scOid the scOid to set |
|
41 |
*/ |
|
42 |
public void setScOid (long scOid) |
|
43 |
{ |
|
44 |
this.scOid = scOid; |
|
45 |
} |
|
46 |
|
|
47 |
/** |
|
48 |
* @return the scCipherText |
|
49 |
*/ |
|
50 |
public String getScCipherText () |
|
51 |
{ |
|
52 |
return scCipherText; |
|
53 |
} |
|
54 |
|
|
55 |
/** |
|
56 |
* @param scCipherText the scCipherText to set |
|
57 |
*/ |
|
58 |
public void setScCipherText (String scCipherText) |
|
59 |
{ |
|
60 |
this.scCipherText = scCipherText; |
|
61 |
} |
|
62 |
|
|
63 |
/** |
|
64 |
* @return the scState |
|
65 |
*/ |
|
66 |
public int getScState () |
|
67 |
{ |
|
68 |
return scState; |
|
69 |
} |
|
70 |
|
|
71 |
/** |
|
72 |
* @param scState the scState to set |
|
73 |
*/ |
|
74 |
public void setScState (int scState) |
|
75 |
{ |
|
76 |
this.scState = scState; |
|
77 |
} |
|
78 |
|
|
79 |
/** |
|
80 |
* @return the scDateCreated |
|
81 |
*/ |
|
82 |
public Date getScDateCreated () |
|
83 |
{ |
|
84 |
return scDateCreated; |
|
85 |
} |
|
86 |
|
|
87 |
/** |
|
88 |
* @param scDateCreated the scDateCreated to set |
|
89 |
*/ |
|
90 |
public void setScDateCreated (Date scDateCreated) |
|
91 |
{ |
|
92 |
this.scDateCreated = scDateCreated; |
|
93 |
} |
|
94 |
|
|
95 |
/** |
|
96 |
* @return the scDateFirstUsed |
|
97 |
*/ |
|
98 |
public Date getScDateFirstUsed () |
|
99 |
{ |
|
100 |
return scDateFirstUsed; |
|
101 |
} |
|
102 |
|
|
103 |
/** |
|
104 |
* @param scDateFirstUsed the scDateFirstUsed to set |
|
105 |
*/ |
|
106 |
public void setScDateFirstUsed (Date scDateFirstUsed) |
|
107 |
{ |
|
108 |
this.scDateFirstUsed = scDateFirstUsed; |
|
109 |
} |
|
110 |
|
|
111 |
/** |
|
112 |
* @return the scDateLastUsed |
|
113 |
*/ |
|
114 |
public Date getScDateLastUsed () |
|
115 |
{ |
|
116 |
return scDateLastUsed; |
|
117 |
} |
|
118 |
|
|
119 |
/** |
|
120 |
* @param scDateLastUsed the scDateLastUsed to set |
|
121 |
*/ |
|
122 |
public void setScDateLastUsed (Date scDateLastUsed) |
|
123 |
{ |
|
124 |
this.scDateLastUsed = scDateLastUsed; |
|
125 |
} |
|
126 |
|
|
127 |
/** |
|
128 |
* @return the scUseCount |
|
129 |
*/ |
|
130 |
public int getScUseCount () |
|
131 |
{ |
|
132 |
return scUseCount; |
|
133 |
} |
|
134 |
|
|
135 |
/** |
|
136 |
* @param scUseCount the scUseCount to set |
|
137 |
*/ |
|
138 |
public void setScUseCount (int scUseCount) |
|
139 |
{ |
|
140 |
this.scUseCount = scUseCount; |
|
141 |
} |
|
142 |
|
|
143 |
/** |
|
144 |
* @return the scErrorCount |
|
145 |
*/ |
|
146 |
public int getScErrorCount () |
|
147 |
{ |
|
148 |
return scErrorCount; |
|
149 |
} |
|
150 |
|
|
151 |
/** |
|
152 |
* @param scErrorCount the scErrorCount to set |
|
153 |
*/ |
|
154 |
public void setScErrorCount (int scErrorCount) |
|
155 |
{ |
|
156 |
this.scErrorCount = scErrorCount; |
|
157 |
} |
|
158 |
|
|
159 |
/** |
|
160 |
* @return the scReferenceId |
|
161 |
*/ |
|
162 |
public String getScReferenceId () |
|
163 |
{ |
|
164 |
return scReferenceId; |
|
165 |
} |
|
166 |
|
|
167 |
/** |
|
168 |
* @param scReferenceId the scReferenceId to set |
|
169 |
*/ |
|
170 |
public void setScReferenceId (String scReferenceId) |
|
171 |
{ |
|
172 |
this.scReferenceId = scReferenceId; |
|
173 |
} |
|
174 |
|
|
175 |
} |
src/main/java/my/com/upass/pojo/TacBean.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2010 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
package my.com.upass.pojo; |
|
12 |
|
|
13 |
import java.io.Serializable; |
|
14 |
import java.util.Date; |
|
15 |
|
|
16 |
/** |
|
17 |
* |
|
18 |
* PROGRAMMER: Danniell |
|
19 |
* CHANGE-NO: |
|
20 |
* TASK-NO: |
|
21 |
* DATE CREATED: Oct 8, 2011 |
|
22 |
* TAG AS: |
|
23 |
* REASON(S): |
|
24 |
* MODIFICATION: |
|
25 |
*/ |
|
26 |
|
|
27 |
/** |
|
28 |
* <Class description> |
|
29 |
*/ |
|
30 |
public class TacBean implements Serializable { |
|
31 |
|
|
32 |
private static final long serialVersionUID = 1L; |
|
33 |
|
|
34 |
private MinimalUserBean upassUser; |
|
35 |
private long userID; |
|
36 |
private String cipherText; |
|
37 |
private int state; |
|
38 |
private Date dateCreated; |
|
39 |
private Date dateFirstUsed; |
|
40 |
private Date dateLastUsed; |
|
41 |
private int useCount; |
|
42 |
private int errorCount; |
|
43 |
private String sessionId; |
|
44 |
|
|
45 |
private String nonce; // a nonce value for additional securiy |
|
46 |
|
|
47 |
// |
|
48 |
|
|
49 |
public void setUpassUser(MinimalUserBean upassUser) { |
|
50 |
this.upassUser = upassUser; |
|
51 |
} |
|
52 |
|
|
53 |
/** |
|
54 |
* @return the upassUser |
|
55 |
*/ |
|
56 |
public MinimalUserBean getUpassUser() { |
|
57 |
return upassUser; |
|
58 |
} |
|
59 |
|
|
60 |
// merging with TacBean |
|
61 |
public TacBean() { |
|
62 |
// super(); |
|
63 |
} |
|
64 |
|
|
65 |
public String getNonce() { |
|
66 |
return nonce; |
|
67 |
} |
|
68 |
|
|
69 |
public void setNonce(String nonce) { |
|
70 |
this.nonce = nonce; |
|
71 |
} |
|
72 |
|
|
73 |
public long getUserID() { |
|
74 |
return userID; |
|
75 |
} |
|
76 |
|
|
77 |
public void setUserID(long userID) { |
|
78 |
this.userID = userID; |
|
79 |
} |
|
80 |
|
|
81 |
public String getCipherText() { |
|
82 |
return cipherText; |
|
83 |
} |
|
84 |
|
|
85 |
public void setCipherText(String cipherText) { |
|
86 |
this.cipherText = cipherText; |
|
87 |
} |
|
88 |
|
|
89 |
public int getState() { |
|
90 |
return state; |
|
91 |
} |
|
92 |
|
|
93 |
public void setState(int state) { |
|
94 |
this.state = state; |
|
95 |
} |
|
96 |
|
|
97 |
public Date getDateCreated() { |
|
98 |
return dateCreated; |
|
99 |
} |
|
100 |
|
|
101 |
public void setDateCreated(Date dateCreated) { |
|
102 |
this.dateCreated = dateCreated; |
|
103 |
} |
|
104 |
|
|
105 |
public Date getDateFirstUsed() { |
|
106 |
return dateFirstUsed; |
|
107 |
} |
|
108 |
|
|
109 |
public void setDateFirstUsed(Date dateFirstUsed) { |
|
110 |
this.dateFirstUsed = dateFirstUsed; |
|
111 |
} |
|
112 |
|
|
113 |
public Date getDateLastUsed() { |
|
114 |
return dateLastUsed; |
|
115 |
} |
|
116 |
|
|
117 |
public void setDateLastUsed(Date dateLastUsed) { |
|
118 |
this.dateLastUsed = dateLastUsed; |
|
119 |
} |
|
120 |
|
|
121 |
public int getUseCount() { |
|
122 |
return useCount; |
|
123 |
} |
|
124 |
|
|
125 |
public void setUseCount(int useCount) { |
|
126 |
this.useCount = useCount; |
|
127 |
} |
|
128 |
|
|
129 |
public int getErrorCount() { |
|
130 |
return errorCount; |
|
131 |
} |
|
132 |
|
|
133 |
public void setErrorCount(int errorCount) { |
|
134 |
this.errorCount = errorCount; |
|
135 |
} |
|
136 |
|
|
137 |
/** |
|
138 |
* @return the sessionId |
|
139 |
*/ |
|
140 |
public String getSessionId() { |
|
141 |
return sessionId; |
|
142 |
} |
|
143 |
|
|
144 |
/** |
|
145 |
* @param sessionId |
|
146 |
* the sessionId to set |
|
147 |
*/ |
|
148 |
public void setSessionId(String sessionId) { |
|
149 |
this.sessionId = sessionId; |
|
150 |
} |
|
151 |
} |
src/main/java/my/com/upass/pojo/TbAmConfigChange.java | ||
---|---|---|
1 |
|
|
2 |
package my.com.upass.pojo; |
|
3 |
|
|
4 |
import java.io.Serializable; |
|
5 |
|
|
6 |
/** |
|
7 |
* |
|
8 |
* PROGRAMMER: Gabbytian Rayvandy |
|
9 |
* CHANGE-NO: |
|
10 |
* TASK-NO: |
|
11 |
* DATE CREATED: Mac 12, 2012 |
|
12 |
* TAG AS: |
|
13 |
* REASON(S): |
|
14 |
* MODIFICATION: |
|
15 |
*/ |
|
16 |
|
|
17 |
/** |
|
18 |
* Config Update = 0 means NO UPDATE Config Update = 1 means UPDATE |
|
19 |
*/ |
|
20 |
public class TbAmConfigChange implements Serializable |
|
21 |
|
|
22 |
{ |
|
23 |
private static final long serialVersionUID = 1L; |
|
24 |
private String configUpdate; |
|
25 |
|
|
26 |
public String getConfigUpdate () |
|
27 |
{ |
|
28 |
return configUpdate; |
|
29 |
} |
|
30 |
|
|
31 |
public void setConfigUpdate (String configUpdate) |
|
32 |
{ |
|
33 |
this.configUpdate = configUpdate; |
|
34 |
} |
|
35 |
|
|
36 |
public static long getSerialversionuid () |
|
37 |
{ |
|
38 |
return serialVersionUID; |
|
39 |
} |
|
40 |
} |
src/main/java/my/com/upass/pojo/TbAmTacBackup.java | ||
---|---|---|
1 |
package my.com.upass.pojo; |
|
2 |
|
|
3 |
import java.io.Serializable; |
|
4 |
import java.sql.Date; |
|
5 |
|
|
6 |
/** |
|
7 |
* |
|
8 |
* PROGRAMMER: Gabbytian Rayvandy |
|
9 |
* CHANGE-NO: |
|
10 |
* TASK-NO: |
|
11 |
* DATE CREATED: Oct 9, 2011 |
|
12 |
* TAG AS: |
|
13 |
* REASON(S): |
|
14 |
* MODIFICATION: |
|
15 |
*/ |
|
16 |
|
|
17 |
/** |
|
18 |
* 0-true, yes |
|
19 |
* 1-false, no |
|
20 |
*/ |
|
21 |
public class TbAmTacBackup implements Serializable |
|
22 |
{ |
|
23 |
private static final long serialVersionUID = 1L; |
|
24 |
private Integer oid; |
|
25 |
private Integer tuserId; |
|
26 |
private String ttacCiphertext; |
|
27 |
private Integer ttacState; |
|
28 |
private Date tdateGenerated; |
|
29 |
private Date tdateFirstUsed; |
|
30 |
private Date tdateLastUsed; |
|
31 |
private Integer tuseCount; |
|
32 |
private Integer terrorCount; |
|
33 |
private String tsessionId; |
|
34 |
|
|
35 |
/** |
|
36 |
* @return the oid |
|
37 |
*/ |
|
38 |
public Integer getOid () |
|
39 |
{ |
|
40 |
return oid; |
|
41 |
} |
|
42 |
|
|
43 |
/** |
|
44 |
* @param oid the oid to set |
|
45 |
*/ |
|
46 |
public void setOid (Integer oid) |
|
47 |
{ |
|
48 |
this.oid = oid; |
|
49 |
} |
|
50 |
|
|
51 |
/** |
|
52 |
* @return the tuserId |
|
53 |
*/ |
|
54 |
public Integer getTuserId () |
|
55 |
{ |
|
56 |
return tuserId; |
|
57 |
} |
|
58 |
|
|
59 |
/** |
|
60 |
* @param tuserId the tuserId to set |
|
61 |
*/ |
|
62 |
public void setTuserId (Integer tuserId) |
|
63 |
{ |
|
64 |
this.tuserId = tuserId; |
|
65 |
} |
|
66 |
|
|
67 |
/** |
|
68 |
* @return the ttacCiphertext |
|
69 |
*/ |
|
70 |
public String getTtacCiphertext () |
|
71 |
{ |
|
72 |
return ttacCiphertext; |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* @param ttacCiphertext the ttacCiphertext to set |
|
77 |
*/ |
|
78 |
public void setTtacCiphertext (String ttacCiphertext) |
|
79 |
{ |
|
80 |
this.ttacCiphertext = ttacCiphertext; |
|
81 |
} |
|
82 |
|
|
83 |
/** |
|
84 |
* @return the ttacState |
|
85 |
*/ |
|
86 |
public Integer getTtacState () |
|
87 |
{ |
|
88 |
return ttacState; |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* @param ttacState the ttacState to set |
|
93 |
*/ |
|
94 |
public void setTtacState (Integer ttacState) |
|
95 |
{ |
|
96 |
this.ttacState = ttacState; |
|
97 |
} |
|
98 |
|
|
99 |
/** |
|
100 |
* @return the tdateGenerated |
|
101 |
*/ |
|
102 |
public Date getTdateGenerated () |
|
103 |
{ |
|
104 |
return tdateGenerated; |
|
105 |
} |
|
106 |
|
|
107 |
/** |
|
108 |
* @param tdateGenerated the tdateGenerated to set |
|
109 |
*/ |
|
110 |
public void setTdateGenerated (Date tdateGenerated) |
|
111 |
{ |
|
112 |
this.tdateGenerated = tdateGenerated; |
|
113 |
} |
|
114 |
|
|
115 |
/** |
|
116 |
* @return the tdateFirstUsed |
|
117 |
*/ |
|
118 |
public Date getTdateFirstUsed () |
|
119 |
{ |
|
120 |
return tdateFirstUsed; |
|
121 |
} |
|
122 |
|
|
123 |
/** |
|
124 |
* @param tdateFirstUsed the tdateFirstUsed to set |
|
125 |
*/ |
|
126 |
public void setTdateFirstUsed (Date tdateFirstUsed) |
|
127 |
{ |
|
128 |
this.tdateFirstUsed = tdateFirstUsed; |
|
129 |
} |
|
130 |
|
|
131 |
/** |
|
132 |
* @return the tdateLastUsed |
|
133 |
*/ |
|
134 |
public Date getTdateLastUsed () |
|
135 |
{ |
|
136 |
return tdateLastUsed; |
|
137 |
} |
|
138 |
|
|
139 |
/** |
|
140 |
* @param tdateLastUsed the tdateLastUsed to set |
|
141 |
*/ |
|
142 |
public void setTdateLastUsed (Date tdateLastUsed) |
|
143 |
{ |
|
144 |
this.tdateLastUsed = tdateLastUsed; |
|
145 |
} |
|
146 |
|
|
147 |
/** |
|
148 |
* @return the tuseCount |
|
149 |
*/ |
|
150 |
public Integer getTuseCount () |
|
151 |
{ |
|
152 |
return tuseCount; |
|
153 |
} |
|
154 |
|
|
155 |
/** |
|
156 |
* @param tuseCount the tuseCount to set |
|
157 |
*/ |
|
158 |
public void setTuseCount (Integer tuseCount) |
|
159 |
{ |
|
160 |
this.tuseCount = tuseCount; |
|
161 |
} |
|
162 |
|
|
163 |
/** |
|
164 |
* @return the terrorCount |
|
165 |
*/ |
|
166 |
public Integer getTerrorCount () |
|
167 |
{ |
|
168 |
return terrorCount; |
|
169 |
} |
|
170 |
|
|
171 |
/** |
|
172 |
* @param terrorCount the terrorCount to set |
|
173 |
*/ |
|
174 |
public void setTerrorCount (Integer terrorCount) |
|
175 |
{ |
|
176 |
this.terrorCount = terrorCount; |
|
177 |
} |
|
178 |
|
|
179 |
/** |
|
180 |
* @return the tsessionId |
|
181 |
*/ |
|
182 |
public String getTsessionId () |
|
183 |
{ |
|
184 |
return tsessionId; |
|
185 |
} |
|
186 |
|
|
187 |
/** |
|
188 |
* @param tsessionId the tsessionId to set |
|
189 |
*/ |
|
190 |
public void setTsessionId (String tsessionId) |
|
191 |
{ |
|
192 |
this.tsessionId = tsessionId; |
|
193 |
} |
|
194 |
} |
src/main/java/my/com/upass/pojo/UserBeanBackup.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2010 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
package my.com.upass.pojo; |
|
12 |
|
|
13 |
import java.util.HashSet; |
|
14 |
import java.util.Set; |
|
15 |
|
|
16 |
public class UserBeanBackup extends MinimalUserBeanBackup |
|
17 |
{ |
|
18 |
private static final long serialVersionUID = 9156396112031434214L; |
|
19 |
TbAmTacBackup tacbean; |
|
20 |
|
|
21 |
private Set upassUserTokens = new HashSet (); |
|
22 |
private UserMasterBeanBackup upassUserMasterBackup; |
|
23 |
|
|
24 |
/** |
|
25 |
* @return the ucustomerType |
|
26 |
*/ |
|
27 |
// public String getUcustomerType () |
|
28 |
// { |
|
29 |
// return ucustomerType; |
|
30 |
// } |
|
31 |
// |
|
32 |
// /** |
|
33 |
// * @param ucustomerType the ucustomerType to set |
|
34 |
// */ |
|
35 |
// public void setUcustomerType (String ucustomerType) |
|
36 |
// { |
|
37 |
// this.ucustomerType = ucustomerType; |
|
38 |
// } |
|
39 |
|
|
40 |
/** |
|
41 |
* @return the upassUserTokens |
|
42 |
*/ |
|
43 |
public Set getUpassUserTokens () |
|
44 |
{ |
|
45 |
return upassUserTokens; |
|
46 |
} |
|
47 |
|
|
48 |
/** |
|
49 |
* @param upassUserTokens the upassUserTokens to set |
|
50 |
*/ |
|
51 |
public void setUpassUserTokens (Set upassUserTokens) |
|
52 |
{ |
|
53 |
this.upassUserTokens = upassUserTokens; |
|
54 |
} |
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
//merging |
|
59 |
|
|
60 |
public TbAmTacBackup getTacbean() { |
|
61 |
return tacbean; |
|
62 |
} |
|
63 |
|
|
64 |
public void setTacbean(TbAmTacBackup tacbean) { |
|
65 |
this.tacbean = tacbean; |
|
66 |
} |
|
67 |
|
|
68 |
/** |
|
69 |
* @return the upassUserMaster |
|
70 |
*/ |
|
71 |
public UserMasterBeanBackup getUpassUserMasterBackup() { |
|
72 |
return upassUserMasterBackup; |
|
73 |
} |
|
74 |
|
|
75 |
/** |
|
76 |
* @param upassUserMaster the upassUserMaster to set |
|
77 |
*/ |
|
78 |
public void setUpassUserMasterBackup(UserMasterBeanBackup upassUserMasterBackup) { |
|
79 |
this.upassUserMasterBackup = upassUserMasterBackup; |
|
80 |
} |
|
81 |
|
|
82 |
public UserBeanBackup() { |
|
83 |
} |
|
84 |
} |
src/main/java/my/com/upass/pojo/UserMasterBean.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2010 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
package my.com.upass.pojo; |
|
12 |
|
|
13 |
import java.io.Serializable; |
|
14 |
|
|
15 |
/** |
|
16 |
* PROGRAMMER: Danniell |
|
17 |
* CHANGE-NO: |
|
18 |
* TASK-NO: |
|
19 |
* DATE CREATED: Oct 8, 2011 |
|
20 |
* TAG AS: |
|
21 |
* REASON(S): |
|
22 |
* MODIFICATION: |
|
23 |
*/ |
|
24 |
|
|
25 |
/** |
|
26 |
* <Class description> |
|
27 |
*/ |
|
28 |
public class UserMasterBean extends my.com.upass.UserMasterBean implements Serializable |
|
29 |
{ |
|
30 |
|
|
31 |
/** |
|
32 |
* |
|
33 |
*/ |
|
34 |
private static final long serialVersionUID = 1932911022659850245L; |
|
35 |
|
|
36 |
} |
src/main/java/my/com/upass/pojo/UserMasterBeanBackup.java | ||
---|---|---|
1 |
/** |
|
2 |
* Copyright (M) 2010 Penril Datability (M) Sdn Bhd All rights reserved. |
|
3 |
* |
|
4 |
* This software is copyrighted. Under the copyright laws, this software |
|
5 |
* may not be copied, in whole or in part, without prior written consent |
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is |
|
7 |
* provided under the terms of a license between Penril Datability (M) |
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that |
|
9 |
* license. |
|
10 |
*/ |
|
11 |
package my.com.upass.pojo; |
|
12 |
|
|
13 |
import java.io.Serializable; |
|
14 |
|
|
15 |
public class UserMasterBeanBackup implements Serializable |
|
16 |
{ |
|
17 |
|
|
18 |
/** |
|
19 |
* |
|
20 |
*/ |
|
21 |
private static final long serialVersionUID = 7981602560302014960L; |
|
22 |
|
|
23 |
private long userID; |
|
24 |
private String userAlias; |
|
25 |
|
|
26 |
|
|
27 |
public long getUserID() { |
|
28 |
return userID; |
|
29 |
} |
|
30 |
public void setUserID(long userID) { |
|
31 |
this.userID = userID; |
|
32 |
} |
|
33 |
public String getUserAlias() { |
|
34 |
return userAlias; |
|
35 |
} |
|
36 |
public void setUserAlias(String userAlias) { |
|
37 |
this.userAlias = userAlias; |
|
38 |
} |
|
39 |
|
|
40 |
} |
src/main/resources/com/ib/hibernate/configuration/hibernate.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
10 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
11 |
<property name="hibernate.connection.password">ci123</property> |
|
12 |
|
|
13 |
<!-- Database connection settings --> |
|
14 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.OracleDialect</property> |
|
17 |
|
|
18 |
<!-- Enable Hibernate's automatic session context management --> |
|
19 |
<property name="current_session_context_class">thread</property> |
|
20 |
|
|
21 |
<!-- Disable the second-level cache --> |
|
22 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
23 |
|
|
24 |
<!-- Echo all executed SQL to stdout --> |
|
25 |
<property name="show_sql">true</property> |
|
26 |
<property name="format_sql">true</property> |
|
27 |
|
|
28 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
29 |
|
|
30 |
<!-- Mapping files --> |
|
31 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
32 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
33 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
34 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
35 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
40 |
<!-- |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
43 |
--> |
|
44 |
</session-factory> |
|
45 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.dev-ora.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
10 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
11 |
<property name="hibernate.connection.password">ci123</property> |
|
12 |
|
|
13 |
<!-- Database connection settings --> |
|
14 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.OracleDialect</property> |
|
17 |
|
|
18 |
<!-- Enable Hibernate's automatic session context management --> |
|
19 |
<property name="current_session_context_class">thread</property> |
|
20 |
|
|
21 |
<!-- Disable the second-level cache --> |
|
22 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
23 |
|
|
24 |
<!-- Echo all executed SQL to stdout --> |
|
25 |
<property name="show_sql">true</property> |
|
26 |
<property name="format_sql">true</property> |
|
27 |
|
|
28 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
29 |
|
|
30 |
<!-- Mapping files --> |
|
31 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
32 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
33 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
34 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
35 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
36 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
37 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
40 |
<!-- |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
43 |
--> |
|
44 |
|
|
45 |
</session-factory> |
|
46 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.dev-penril.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
10 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
11 |
<property name="hibernate.connection.password">ci123</property> |
|
12 |
|
|
13 |
<!-- Database connection settings --> |
|
14 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
15 |
<!-- SQL dialect --> |
|
16 |
<property name="dialect">org.hibernate.dialect.OracleDialect</property> |
|
17 |
|
|
18 |
<!-- Use the C3P0 connection pool provider --> |
|
19 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
20 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
21 |
<property name="hibernate.c3p0.min_size">20</property> |
|
22 |
<property name="hibernate.c3p0.max_size">50</property> |
|
23 |
<property name="hibernate.c3p0.timeout">120</property> |
|
24 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
25 |
<!-- Enable Hibernate's automatic session context management --> |
|
26 |
<property name="current_session_context_class">thread</property> |
|
27 |
|
|
28 |
<!-- Disable the second-level cache --> |
|
29 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
30 |
|
|
31 |
<!-- Echo all executed SQL to stdout --> |
|
32 |
<property name="show_sql">true</property> |
|
33 |
<property name="format_sql">true</property> |
|
34 |
|
|
35 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
36 |
|
|
37 |
<!-- Mapping files --> |
|
38 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
39 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
47 |
<!-- |
|
48 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
49 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
50 |
--> |
|
51 |
</session-factory> |
|
52 |
</hibernate-configuration> |
src/main/resources/com/ib/hibernate/configuration/hibernate.staging-ci.cfg.xml | ||
---|---|---|
1 |
<?xml version='1.0' encoding='utf-8'?> |
|
2 |
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-configuration> |
|
6 |
<session-factory> |
|
7 |
<!-- Database connection settings --> |
|
8 |
|
|
9 |
<!-- <property name="connection.url">jdbc:oracle:thin:@localhost:1521:XE</property> |
|
10 |
<property name="connection.url">jdbc:oracle:thin:@192.168.1.126:1521:IBSDEMO</property> --> |
|
11 |
<property name="connection.url">jdbc:oracle:thin:@192.168.56.103:1521:XE</property> |
|
12 |
<property name="hibernate.connection.username">M2U_UPASS_CI</property> |
|
13 |
<property name="hibernate.connection.password">ci123</property> |
|
14 |
|
|
15 |
<!-- Database connection settings --> |
|
16 |
<property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> |
|
17 |
<!-- SQL dialect --> |
|
18 |
<property name="dialect">org.hibernate.dialect.OracleDialect</property> |
|
19 |
|
|
20 |
<!-- Use the C3P0 connection pool provider --> |
|
21 |
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property> |
|
22 |
<property name="hibernate.c3p0.acquire_increment">5</property> |
|
23 |
<property name="hibernate.c3p0.min_size">20</property> |
|
24 |
<property name="hibernate.c3p0.max_size">50</property> |
|
25 |
<property name="hibernate.c3p0.timeout">120</property> |
|
26 |
<property name="hibernate.c3p0.max_statements">0</property> |
|
27 |
<!-- Enable Hibernate's automatic session context management --> |
|
28 |
<property name="current_session_context_class">thread</property> |
|
29 |
|
|
30 |
<!-- Disable the second-level cache --> |
|
31 |
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property> |
|
32 |
|
|
33 |
<!-- Echo all executed SQL to stdout --> |
|
34 |
<property name="show_sql">false</property> |
|
35 |
<property name="format_sql">true</property> |
|
36 |
|
|
37 |
<property name="hibernate.hbm2ddl.auto">none</property> |
|
38 |
|
|
39 |
<!-- Mapping files --> |
|
40 |
<mapping resource="my/com/upass/hibernate/TbAmUsermas.hbm.xml" /> |
|
41 |
<mapping resource="my/com/upass/hibernate/TbAmUser.hbm.xml" /> |
|
42 |
<mapping resource="my/com/upass/hibernate/TbAmTac.hbm.xml" /> |
|
43 |
<mapping resource="my/com/upass/hibernate/TbAmAppserv.hbm.xml" /> |
|
44 |
<mapping resource="my/com/upass/hibernate/TbAmConfig.hbm.xml" /> |
|
45 |
<mapping resource="my/com/upass/hibernate/TbAmSecurityCode.hbm.xml" /> |
|
46 |
<mapping resource="my/com/upass/hibernate/TbAmUserBackup.hbm.xml" /> |
|
47 |
<mapping resource="my/com/upass/hibernate/TbAmUsermasBackup.hbm.xml" /> |
|
48 |
<mapping resource="my/com/upass/hibernate/TbAmTacBackup.hbm.xml" /> |
|
49 |
<!-- |
|
50 |
<mapping resource="my/com/upass/hibernate/TbAmGemalto.hbm.xml" /> |
|
51 |
<mapping resource="my/com/upass/hibernate/TbAmVasco.hbm.xml" /> |
|
52 |
--> |
|
53 |
</session-factory> |
|
54 |
</hibernate-configuration> |
src/main/resources/my/com/upass/hibernate/TbAmAppserv.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
3 |
|
|
4 |
<hibernate-mapping> |
|
5 |
<class name="my.com.upass.pojo.AppAccessBean" table="TB_AM_APPSERV"> |
|
6 |
<composite-id> |
|
7 |
<key-property name="aappServId" column="A_APP_SERV_ID" |
|
8 |
type="string" length="10" /> |
|
9 |
<key-many-to-one name="tbAmUser" |
|
10 |
class="my.com.upass.pojo.MinimalUserBean" column="A_USER_ID" /> |
|
11 |
</composite-id> |
|
12 |
<property name="aappServAccess1" type="string"> |
|
13 |
<column name="A_APP_SERV_ACCESS1" length="64" /> |
|
14 |
</property> |
|
15 |
<property name="aappServAccess2" type="string"> |
|
16 |
<column name="A_APP_SERV_ACCESS2" length="64" /> |
|
17 |
</property> |
|
18 |
<property name="aappServAuthList" type="string"> |
|
19 |
<column name="A_APP_SERV_AUTH_LIST" length="64" /> |
|
20 |
</property> |
|
21 |
</class> |
|
22 |
</hibernate-mapping> |
|
23 |
|
src/main/resources/my/com/upass/hibernate/TbAmConfig.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
3 |
|
|
4 |
<hibernate-mapping> |
|
5 |
<class name="my.com.upass.pojo.ConfigurationBean" table="TB_AM_CONFIG"> |
|
6 |
<composite-id> |
|
7 |
<key-property name="configName" type="string"> |
|
8 |
<column name="CONFIG_NAME" length="64" /> |
|
9 |
</key-property> |
|
10 |
<key-property name="applicationId" type="integer"> |
|
11 |
<column name="APPLICATION_ID" length="9" not-null="true" /> |
|
12 |
</key-property> |
|
13 |
</composite-id> |
|
14 |
<property name="configValue" type="string"> |
|
15 |
<column name="CONFIG_VALUE" length="64" not-null="true" /> |
|
16 |
</property> |
|
17 |
<property name="configDescription" type="string"> |
|
18 |
<column name="CONFIG_DESCRIPTION" length="256" /> |
|
19 |
</property> |
|
20 |
<property name="mkPending" type="integer"> |
|
21 |
<column name="MK_PENDING"/> |
|
22 |
</property> |
|
23 |
</class> |
|
24 |
</hibernate-mapping> |
|
25 |
|
src/main/resources/my/com/upass/hibernate/TbAmConfigChange.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
4 |
|
|
5 |
<hibernate-mapping> |
|
6 |
<class name="my.com.upass.pojo.TbAmConfigChange" table="TB_AM_CONFIG_CHANGE"> |
|
7 |
<id name="configUpdate" type="integer"> |
|
8 |
<column name="CONFIG_UPDATE" /> |
|
9 |
<generator class="assigned" /> |
|
10 |
</id> |
|
11 |
</class> |
|
12 |
</hibernate-mapping> |
src/main/resources/my/com/upass/hibernate/TbAmSecurityCode.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
3 |
|
|
4 |
<hibernate-mapping> |
|
5 |
<class name="my.com.upass.pojo.SecurityCodeBean" table="TB_AM_SECURITY_CODE"> |
|
6 |
<id name="scOid" type="long"> |
|
7 |
<column name="T_USER_ID" precision="9" /> |
|
8 |
<generator class="native" /> |
|
9 |
</id> |
|
10 |
|
|
11 |
<property name="scCipherText" type="string"> |
|
12 |
<column name="SC_CIPHERTEXT" length="64" /> |
|
13 |
</property> |
|
14 |
<property name="scState" type="int"> |
|
15 |
<column name="SC_STATE" precision="1" not-null="true" |
|
16 |
default="0" /> |
|
17 |
</property> |
|
18 |
<property name="scDateCreated" type="timestamp"> |
|
19 |
<column name="SC_DATE_GENERATED" /> |
|
20 |
</property> |
|
21 |
<property name="scDateFirstUsed" type="timestamp"> |
|
22 |
<column name="SC_DATE_FIRST_USED" /> |
|
23 |
</property> |
|
24 |
<property name="scDateLastUsed" type="timestamp"> |
|
25 |
<column name="SC_DATE_LAST_USED" /> |
|
26 |
</property> |
|
27 |
<property name="scUseCount" type="int"> |
|
28 |
<column name="SC_USE_COUNT" precision="6" not-null="true" |
|
29 |
default="0" /> |
|
30 |
</property> |
|
31 |
<property name="scErrorCount" type="int"> |
|
32 |
<column name="SC_ERROR_COUNT" precision="2" not-null="true" |
|
33 |
default="0" /> |
|
34 |
</property> |
|
35 |
<property name="scReferenceId" type="string"> |
|
36 |
<column name="SC_REFERENCE_ID" unique="true" length="40" /> |
|
37 |
</property> |
|
38 |
</class> |
|
39 |
</hibernate-mapping> |
|
40 |
|
src/main/resources/my/com/upass/hibernate/TbAmTac.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
3 |
|
|
4 |
<hibernate-mapping> |
|
5 |
<class name="my.com.upass.pojo.TacBean" table="TB_AM_TAC"> |
|
6 |
<id name="userID" type="long"> |
|
7 |
<column name="T_USER_ID" precision="9" /> |
|
8 |
<generator class="assigned" /> |
|
9 |
</id> |
|
10 |
|
|
11 |
<property name="cipherText" type="string"> |
|
12 |
<column name="T_TAC_CIPHERTEXT" length="64" /> |
|
13 |
</property> |
|
14 |
<property name="state" type="integer"> |
|
15 |
<column name="T_TAC_STATE" precision="1" not-null="true" |
|
16 |
default="0" /> |
|
17 |
</property> |
|
18 |
<property name="dateCreated" type="timestamp"> |
|
19 |
<column name="T_DATE_GENERATED" /> |
|
20 |
</property> |
|
21 |
<property name="dateFirstUsed" type="timestamp"> |
|
22 |
<column name="T_DATE_FIRST_USED" /> |
|
23 |
</property> |
|
24 |
<property name="dateLastUsed" type="timestamp"> |
|
25 |
<column name="T_DATE_LAST_USED" /> |
|
26 |
</property> |
|
27 |
<property name="useCount" type="integer"> |
|
28 |
<column name="T_USE_COUNT" precision="6" not-null="true" |
|
29 |
default="0" /> |
|
30 |
</property> |
|
31 |
<property name="errorCount" type="integer"> |
|
32 |
<column name="T_ERROR_COUNT" precision="2" not-null="true" |
|
33 |
default="0" /> |
|
34 |
</property> |
|
35 |
<property name="sessionId" type="string"> |
|
36 |
<column name="T_SESSION_ID" length="32" /> |
|
37 |
</property> |
|
38 |
|
|
39 |
<many-to-one name="upassUser" class="my.com.upass.pojo.MinimalUserBean" |
|
40 |
fetch="join" column="T_USER_ID" cascade="save-update, delete" insert="false" |
|
41 |
update="false" /> |
|
42 |
</class> |
|
43 |
</hibernate-mapping> |
|
44 |
|
src/main/resources/my/com/upass/hibernate/TbAmTacBackup.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" |
|
3 |
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
4 |
|
|
5 |
<!-- Fine-tuned for cross-db migration. --> |
|
6 |
<hibernate-mapping> |
|
7 |
<class name="my.com.upass.pojo.TbAmTacBackup" table="TB_AM_TAC_BACKUP"> |
|
8 |
<id name="oid" type="integer"> |
|
9 |
<generator class="sequence"> |
|
10 |
<param name="sequence">TB_AM_TAC_BACKUP_OID_SEQ</param> |
|
11 |
<param name="parameters">INCREMENT BY 1 START WITH 1</param> |
|
12 |
</generator> |
|
13 |
</id> |
|
14 |
|
|
15 |
<property name="tuserId" type="long"> |
|
16 |
<column name="T_USER_ID" precision="9" /> |
|
17 |
</property> |
|
18 |
<property name="ttacCiphertext" type="string"> |
|
19 |
<column name="T_TAC_CIPHERTEXT" length="64" /> |
|
20 |
</property> |
|
21 |
<property name="ttacState" type="integer"> |
|
22 |
<column name="T_TAC_STATE" precision="1" /> |
|
23 |
</property> |
|
24 |
<property name="tdateGenerated" type="timestamp"> |
|
25 |
<column name="T_DATE_GENERATED" /> |
|
26 |
</property> |
|
27 |
<property name="tdateFirstUsed" type="timestamp"> |
|
28 |
<column name="T_DATE_FIRST_USED" /> |
|
29 |
</property> |
|
30 |
<property name="tdateLastUsed" type="timestamp"> |
|
31 |
<column name="T_DATE_LAST_USED" /> |
|
32 |
</property> |
|
33 |
<property name="tuseCount" type="integer"> |
|
34 |
<column name="T_USE_COUNT" precision="6" /> |
|
35 |
</property> |
|
36 |
<property name="terrorCount" type="integer"> |
|
37 |
<column name="T_ERROR_COUNT" precision="2" /> |
|
38 |
</property> |
|
39 |
<property name="tsessionId" type="string"> |
|
40 |
<column name="T_SESSION_ID" length="32" /> |
|
41 |
</property> |
|
42 |
|
|
43 |
</class> |
|
44 |
</hibernate-mapping> |
src/main/resources/my/com/upass/hibernate/TbAmUser.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
3 |
|
|
4 |
<hibernate-mapping> |
|
5 |
<class name="my.com.upass.pojo.MinimalUserBean" table="TB_AM_USER"> |
|
6 |
<id name="userID" type="long"> |
|
7 |
<column name="U_USER_ID" precision="9" /> |
|
8 |
<generator class="assigned" /> |
|
9 |
</id> |
|
10 |
|
|
11 |
<property name="userType" type="integer"> |
|
12 |
<column name="U_USER_TYPE" precision="1" not-null="true" /> |
|
13 |
</property> |
|
14 |
<property name="userAlias" type="string"> |
|
15 |
<column name="U_USER_ALIAS" length="30" not-null="true" /> |
|
16 |
</property> |
|
17 |
<property name="description" type="string"> |
|
18 |
<column name="U_USER_DESC" length="40" /> |
|
19 |
</property> |
|
20 |
<property name="udateCreated" type="timestamp"> |
|
21 |
<column name="U_DATE_CREATED" not-null="true" /> |
|
22 |
</property> |
|
23 |
<property name="udateLastUsed" type="timestamp"> |
|
24 |
<column name="U_DATE_LAST_USED" /> |
|
25 |
</property> |
|
26 |
<property name="uuseCount" type="integer"> |
|
27 |
<column name="U_USE_COUNT" precision="6" not-null="true" /> |
|
28 |
</property> |
|
29 |
<property name="udateLastActivated" type="timestamp"> |
|
30 |
<column name="U_DATE_LAST_ACT" /> |
|
31 |
</property> |
|
32 |
<property name="udateLastLocked" type="timestamp"> |
|
33 |
<column name="U_DATE_LAST_LOCK" /> |
|
34 |
</property> |
|
35 |
<property name="ustate" type="integer"> |
|
36 |
<column name="U_USER_STATE" precision="1" not-null="true" /> |
|
37 |
</property> |
|
38 |
<property name="udateLockedFrom" type="timestamp"> |
|
39 |
<column name="U_DATE_LOCK_FROM" /> |
|
40 |
</property> |
|
41 |
<property name="udateLockedTo" type="timestamp"> |
|
42 |
<column name="U_DATE_LOCK_TO" /> |
|
43 |
</property> |
|
44 |
<property name="pcipherText" type="string"> |
|
45 |
<column name="P_PASSWD_CIPHERTEXT" length="64" /> |
|
46 |
</property> |
|
47 |
<property name="pstate" type="integer"> |
|
48 |
<column name="P_PASSWD_STATE" precision="1" not-null="true" /> |
|
49 |
</property> |
|
50 |
<property name="pdateCreated" type="timestamp"> |
|
51 |
<column name="P_DATE_GENERATED" not-null="true" /> |
|
52 |
</property> |
|
53 |
<property name="pdateFirstUsed" type="timestamp"> |
|
54 |
<column name="P_DATE_FIRST_USED" /> |
|
55 |
</property> |
|
56 |
<property name="pdateLastUsed" type="timestamp"> |
|
57 |
<column name="P_DATE_LAST_USED" /> |
|
58 |
</property> |
|
59 |
<property name="puseCount" type="integer"> |
|
60 |
<column name="P_USE_COUNT" precision="6" not-null="true" /> |
|
61 |
</property> |
|
62 |
<property name="perrorCount" type="integer"> |
|
63 |
<column name="P_ERROR_COUNT" precision="2" not-null="true" /> |
|
64 |
</property> |
|
65 |
<property name="pexpiredStatus" type="integer"> |
|
66 |
<column name="P_EXPIRED_STATUS" precision="1" not-null="true" /> |
|
67 |
</property> |
|
68 |
<property name="pdateExpired" type="timestamp"> |
|
69 |
<column name="P_DATE_EXPIRED" /> |
|
70 |
</property> |
|
71 |
<property name="phistoryList" type="string"> |
|
72 |
<column name="P_PASSWD_HIST" length="650" /> |
|
73 |
</property> |
|
74 |
<!-- <property name="ucustomerType" type="string"> --> |
|
75 |
<!-- <column name="U_CUSTOMER_TYPE" length="10" /> --> |
|
76 |
<!-- </property> --> |
|
77 |
<property name="applicationId" type="integer"> |
|
78 |
<column name="U_APPLICATION_ID" precision="6" not-null="false" /> |
|
79 |
</property> |
|
80 |
|
|
81 |
</class> |
|
82 |
</hibernate-mapping> |
|
83 |
|
src/main/resources/my/com/upass/hibernate/TbAmUserBackup.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> |
|
3 |
|
|
4 |
<hibernate-mapping> |
|
5 |
<class name="my.com.upass.pojo.UserBeanBackup" table="TB_AM_USER_BACKUP"> |
|
6 |
<id name="oid" type="integer"> |
|
7 |
<generator class="sequence"> |
|
8 |
<param name="sequence">TB_AM_USER_BACKUP_OID_SEQ</param> |
|
9 |
<param name="parameters">INCREMENT BY 1 START WITH 1</param> |
|
10 |
</generator> |
|
11 |
</id> |
|
12 |
<property name="userID" type="long"> |
|
13 |
<column name="U_USER_ID" precision="9" /> |
|
14 |
</property> |
|
15 |
<property name="userType" type="integer"> |
|
16 |
<column name="U_USER_TYPE" precision="1" /> |
|
17 |
</property> |
|
18 |
<property name="userAlias" type="string"> |
|
19 |
<column name="U_USER_ALIAS" length="50" /> |
|
20 |
</property> |
|
21 |
<property name="description" type="string"> |
|
22 |
<column name="U_USER_DESC" length="40" /> |
|
23 |
</property> |
|
24 |
<property name="udateCreated" type="timestamp"> |
|
25 |
<column name="U_DATE_CREATED" /> |
|
26 |
</property> |
|
27 |
<property name="udateLastUsed" type="timestamp"> |
|
28 |
<column name="U_DATE_LAST_USED" /> |
|
29 |
</property> |
|
30 |
<property name="uuseCount" type="integer"> |
|
31 |
<column name="U_USE_COUNT" precision="6" /> |
|
32 |
</property> |
|
33 |
<property name="udateLastActivated" type="timestamp"> |
|
34 |
<column name="U_DATE_LAST_ACT" /> |
|
35 |
</property> |
|
36 |
<property name="udateLastLocked" type="timestamp"> |
|
37 |
<column name="U_DATE_LAST_LOCK" /> |
|
38 |
</property> |
|
39 |
<property name="ustate" type="integer"> |
|
40 |
<column name="U_USER_STATE" precision="1" /> |
|
41 |
</property> |
|
42 |
<property name="udateLockedFrom" type="timestamp"> |
|
43 |
<column name="U_DATE_LOCK_FROM" /> |
|
44 |
</property> |
|
45 |
<property name="udateLockedTo" type="timestamp"> |
|
46 |
<column name="U_DATE_LOCK_TO" /> |
|
47 |
</property> |
|
48 |
<property name="pcipherText" type="string"> |
|
49 |
<column name="P_PASSWD_CIPHERTEXT" length="64" /> |
|
50 |
</property> |
|
51 |
<property name="pstate" type="integer"> |
|
52 |
<column name="P_PASSWD_STATE" precision="1" /> |
|
53 |
</property> |
|
54 |
<property name="pdateCreated" type="timestamp"> |
|
55 |
<column name="P_DATE_GENERATED" /> |
|
56 |
</property> |
|
57 |
<property name="pdateFirstUsed" type="timestamp"> |
|
58 |
<column name="P_DATE_FIRST_USED" /> |
|
59 |
</property> |
|
60 |
<property name="pdateLastUsed" type="timestamp"> |
|
61 |
<column name="P_DATE_LAST_USED" /> |
|
62 |
</property> |
|
63 |
<property name="puseCount" type="integer"> |
|
64 |
<column name="P_USE_COUNT" precision="6"/> |
|
65 |
</property> |
|
66 |
<property name="perrorCount" type="integer"> |
|
67 |
<column name="P_ERROR_COUNT" precision="2"/> |
|
68 |
</property> |
|
69 |
<property name="pexpiredStatus" type="integer"> |
|
70 |
<column name="P_EXPIRED_STATUS" precision="1"/> |
|
71 |
</property> |
|
72 |
<property name="pdateExpired" type="timestamp"> |
|
73 |
<column name="P_DATE_EXPIRED" /> |
|
74 |
</property> |
|
75 |
<property name="phistoryList" type="string"> |
|
76 |
<column name="P_PASSWD_HIST" length="650" /> |
|
77 |
</property> |
|
78 |
<property name="applicationId" type="integer"> |
|
79 |
<column name="U_APPLICATION_ID" precision="6"/> |
|
80 |
</property> |
|
81 |
|
|
82 |
<one-to-one name="tacbean" class="my.com.upass.pojo.TbAmTacBackup" |
|
83 |
fetch="join" cascade="save-update, delete"/> |
|
84 |
|
|
85 |
<many-to-one name="upassUserMasterBackup" fetch="join" cascade="save-update, delete" |
|
86 |
class="my.com.upass.pojo.UserMasterBeanBackup" column="U_USER_ALIAS" |
|
87 |
insert="false" update="false" /> |
|
88 |
|
|
89 |
</class> |
|
90 |
</hibernate-mapping> |
|
91 |
|
src/main/resources/my/com/upass/hibernate/TbAmUsermas.hbm.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
Also available in: Unified diff