StudentDTO.java
package com.sunilos.proj0.dto;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* Student POJO class. It is persistent object.
*
* @author SunilOS
* @version 1.0
* @Copyright (c) SunilOS
*/
@Entity
@Table(name = "ST_STUDENT")
public class StudentDTO extends BaseDTO {
/**
* First Name of Student
*/
@Column(name = "FIRSTNAME", length = 50)
private String firstName;
/**
* Last Name of Student
*/
@Column(name = "LASTNAME", length = 50)
private String lastName;
/**
* Date of Birth of Student
*/
@Column(name = "DOB")
private Date dob;
/**
* Mobileno of Student
*/
@Column(name = "MOBILENO", length = 15)
private String mobileNo;
/**
* Email of Student
*/
@Column(name = "EMAIL", length = 50)
private String email;
/**
* CollegeId of Student
*/
@Column(name = "COLLEGEID")
private Long collegeId;
/**
* College name of Student
*/
@Column(name = "COLLEGENAME", length = 50)
private String collegeName;
/**
* accessor
*/
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public Date getDob() {
return dob;
}
public void setDob(Date dob) {
this.dob = dob;
}
public String getMobileNo() {
return mobileNo;
}
public void setMobileNo(String mobileNo) {
this.mobileNo = mobileNo;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Long getCollegeId() {
return collegeId;
}
public void setCollegeId(Long collegeId) {
this.collegeId = collegeId;
}
public String getCollegeName() {
return collegeName;
}
public void setCollegeName(String collegeName) {
this.collegeName = collegeName;
}
public String getKey() {
return id + "";
}
public String getValue() {
return firstName + " " + lastName;
}
}