Hi,
Thanks for helping. I have pasted below the source for the two classes. It was generated using the hibernate tools.
Thanks
Code:
public class UserAttribute implements java.io.Serializable{
// Fields
private String id;
private User users;
private MetadataElement metadataElement;
private String name;
private String value;
// Constructors
/** default constructor */
public UserAttribute() {
}
/** minimal constructor */
public UserAttribute(String id) {
this.id = id;
}
/** full constructor */
public UserAttribute(String id, User users,
MetadataElement metadataElement, String name, String value) {
this.id = id;
this.users = users;
this.metadataElement = metadataElement;
this.name = name;
this.value = value;
}
// Property accessors
public String getId() {
return this.id;
}
public void setId(String id) {
this.id = id;
}
public User getUsers() {
return this.users;
}
public void setUsers(User users) {
this.users = users;
}
public MetadataElement getMetadataElement() {
return this.metadataElement;
}
public void setMetadataElement(MetadataElement metadataElement) {
this.metadataElement = metadataElement;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
}
Code:
public class User extends org.openiam.base.BaseObject {
// Fields
private String userId;
private MetadataType metadataType;
private String firstName;
private String lastName;
private Character middleInit;
private String title;
private String dept;
private String status;
private Date birthdate;
private Character sex;
private Date createDate;
private String createdBy;
private Date lastUpdate;
private String lastUpdatedBy;
private String prefix;
private String suffix;
private String userTypeInd;
private String employeeId;
private String employeeType;
private String locationId;
private String companyId;
private String companyOwnerId;
private Date expirationDate;
private String managerId;
private String jobCode;
private Map userAttributes = new HashMap();
// Constructors
/** default constructor */
public User() {
}
/** minimal constructor */
public User(String userId) {
this.userId = userId;
}
/** full constructor */
public User(String userId, MetadataType metadataType, String firstName,
String lastName, Character middleInit, String title, String dept,
String status, Date birthdate, Character sex, Date createDate,
String createdBy, Date lastUpdate, String lastUpdatedBy,
String prefix, String suffix, String userTypeInd,
String employeeId, String employeeType, String locationId,
String companyId, String companyOwnerId, Date expirationDate,
String managerId, String jobCode, Set userGrps, Set userNotes,
Set credentialses, Set authStates, Set userIdentityAnses,
Set resourceUsers, Set logins, Set roles, Map userAttributeses) {
this.userId = userId;
this.metadataType = metadataType;
this.firstName = firstName;
this.lastName = lastName;
this.middleInit = middleInit;
this.title = title;
this.dept = dept;
this.status = status;
this.birthdate = birthdate;
this.sex = sex;
this.createDate = createDate;
this.createdBy = createdBy;
this.lastUpdate = lastUpdate;
this.lastUpdatedBy = lastUpdatedBy;
this.prefix = prefix;
this.suffix = suffix;
this.userTypeInd = userTypeInd;
this.employeeId = employeeId;
this.employeeType = employeeType;
this.locationId = locationId;
this.companyId = companyId;
this.companyOwnerId = companyOwnerId;
this.expirationDate = expirationDate;
this.managerId = managerId;
this.jobCode = jobCode;
this.userGrps = userGrps;
this.userNotes = userNotes;
this.credentialses = credentialses;
this.authStates = authStates;
this.userIdentityAnses = userIdentityAnses;
this.resourceUsers = resourceUsers;
this.logins = logins;
this.roles = roles;
this.userAttributes = userAttributeses;
}
// Property accessors
public String getUserId() {
return this.userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public MetadataType getMetadataType() {
return this.metadataType;
}
public void setMetadataType(MetadataType metadataType) {
this.metadataType = metadataType;
}
public String getFirstName() {
return this.firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return this.lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public Character getMiddleInit() {
return this.middleInit;
}
public void setMiddleInit(Character middleInit) {
this.middleInit = middleInit;
}
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDept() {
return this.dept;
}
public void setDept(String dept) {
this.dept = dept;
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
}
public Date getBirthdate() {
return this.birthdate;
}
public void setBirthdate(Date birthdate) {
this.birthdate = birthdate;
}
public Character getSex() {
return this.sex;
}
public void setSex(Character sex) {
this.sex = sex;
}
public Date getCreateDate() {
return this.createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public String getCreatedBy() {
return this.createdBy;
}
public void setCreatedBy(String createdBy) {
this.createdBy = createdBy;
}
public Date getLastUpdate() {
return this.lastUpdate;
}
public void setLastUpdate(Date lastUpdate) {
this.lastUpdate = lastUpdate;
}
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
public String getPrefix() {
return this.prefix;
}
public void setPrefix(String prefix) {
this.prefix = prefix;
}
public String getSuffix() {
return this.suffix;
}
public void setSuffix(String suffix) {
this.suffix = suffix;
}
public String getUserTypeInd() {
return this.userTypeInd;
}
public void setUserTypeInd(String userTypeInd) {
this.userTypeInd = userTypeInd;
}
public String getEmployeeId() {
return this.employeeId;
}
public void setEmployeeId(String employeeId) {
this.employeeId = employeeId;
}
public String getEmployeeType() {
return this.employeeType;
}
public void setEmployeeType(String employeeType) {
this.employeeType = employeeType;
}
public String getLocationId() {
return this.locationId;
}
public void setLocationId(String locationId) {
this.locationId = locationId;
}
public String getCompanyId() {
return this.companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public String getCompanyOwnerId() {
return this.companyOwnerId;
}
public void setCompanyOwnerId(String companyOwnerId) {
this.companyOwnerId = companyOwnerId;
}
public Date getExpirationDate() {
return this.expirationDate;
}
public void setExpirationDate(Date expirationDate) {
this.expirationDate = expirationDate;
}
public String getManagerId() {
return this.managerId;
}
public void setManagerId(String managerId) {
this.managerId = managerId;
}
public String getJobCode() {
return this.jobCode;
}
public void setJobCode(String jobCode) {
this.jobCode = jobCode;
}
public Map getUserAttributes() {
return this.userAttributes;
}
public void setUserAttributes(Map userAttributeses) {
this.userAttributes = userAttributeses;
}
}