Revision 33:e8644c24bbc7

View differences:

src/main/java/my/com/upass/maybank/entities/Im2uUser.java
1 1
package my.com.upass.maybank.entities;
2 2

  
3
import java.util.Date;
4

  
3 5
import my.com.upass.pojo.MinimalUserBean;
4 6

  
5 7
public class Im2uUser implements UserProfile {
......
7 9
	private static final long serialVersionUID = 1L;
8 10

  
9 11
	private Long userId;
10
	private MinimalUserBean minUser;
11 12
	private String wsFlag;
12 13
	private String wsIdentCode;
13 14
	private String wsMySgId;
14
	private String wsRegTimeStamp;
15

  
15
	private Date wsRegTimeStamp;
16
	private M2uUser m2uUser;
17
	
16 18
	//
17 19

  
18 20
	public String getWsFlag() {
......
39 41
		this.wsMySgId = wsMySgId;
40 42
	}
41 43

  
42
	public String getWsRegTimeStamp() {
44
	public Date getWsRegTimeStamp() {
43 45
		return wsRegTimeStamp;
44 46
	}
45 47

  
46
	public void setWsRegTimeStamp(String wsRegTimeStamp) {
48
	public void setWsRegTimeStamp(Date wsRegTimeStamp) {
47 49
		this.wsRegTimeStamp = wsRegTimeStamp;
48 50
	}
49 51

  
50
	public MinimalUserBean getMinUser() {
51
		return minUser;
52
	}
53

  
54
	public void setMinUser(MinimalUserBean maybankUser) {
55
		this.minUser = maybankUser;
56
		if (maybankUser != null)
57
			this.userId = new Long(maybankUser.getUserID());
58
	}
59

  
60 52
	public Long getUserId() {
61 53
		return userId;
62 54
	}
......
65 57
		this.userId = userId;
66 58
	}
67 59

  
60
	public MinimalUserBean getMinUser() {
61
		return m2uUser.getMinUser();
62
	}
63

  
64
	public void setMinUser(MinimalUserBean minUser) {
65
		m2uUser.setMinUser(minUser);
66
		if (minUser != null)
67
			this.userId = m2uUser.getUserId();
68
	}
69
	
70
	public M2uUser getM2uUser() {
71
		return m2uUser;
72
	}
73

  
74
	public void setM2uUser(M2uUser m2uUser) {
75
		this.m2uUser = m2uUser;
76
		if (m2uUser != null)
77
			this.userId = m2uUser.getUserId();
78
	}
68 79
}
src/main/java/my/com/upass/maybank/entities/StockUser.java
12 12
	private String stAccountNo;
13 13
	private String idNo;
14 14
	private String highNetWorthAttr;
15
	private String custType;
15
	private Integer custType;
16 16
	private String activeAttr;
17 17

  
18 18
	//
......
49 49
		this.highNetWorthAttr = highNetWorthAttr;
50 50
	}
51 51

  
52
	public String getCustType() {
52
	public Integer getCustType() {
53 53
		return custType;
54 54
	}
55 55

  
56
	public void setCustType(String custType) {
56
	public void setCustType(Integer custType) {
57 57
		this.custType = custType;
58 58
	}
59 59

  
src/main/resources/my/com/upass/maybank/entities/hibernate/Im2uUser.hbm.xml
19 19
		<property name="wsRegTimeStamp" type="timestamp">
20 20
			<column name="WS_REG_TIMESTAMP" />
21 21
		</property>
22
		<one-to-one name="minUser" class="my.com.upass.pojo.MinimalUserBean" constrained="true"></one-to-one>
22
		<one-to-one name="m2uUser" class="my.com.upass.maybank.entities.M2uUser" constrained="true"></one-to-one>
23 23
	</class>
24 24
</hibernate-mapping>

Also available in: Unified diff