Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package th.in.oneauthen.object;
- import java.io.Serializable;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.GeneratedValue;
- import javax.persistence.Id;
- import javax.persistence.JoinColumn;
- import javax.persistence.ManyToOne;
- import javax.persistence.NamedQueries;
- import javax.persistence.NamedQuery;
- import javax.persistence.Table;
- @Entity
- @Table(name="SIGNATURE_PROFILE")
- @NamedQueries(value = {
- @NamedQuery(name="getSignatureProfileByNameAndOwner", query="SELECT sProfile FROM SignatureProfileDB sProfile WHERE sProfile.profileName = :profileName AND sProfile.userUid = :userUid"),
- @NamedQuery(name="listSignatureProfileByOwner", query="SELECT sProfile FROM SignatureProfileDB sProfile WHERE sProfile.userUid = :userUid")
- })
- public class SignatureProfileDB implements Serializable {
- /**
- *
- */
- private static final long serialVersionUID = -1604323689026629990L;
- @Id
- @GeneratedValue @Column(name ="ID")
- private int profileID;
- @Column(name = "NAME", nullable = false)
- private String profileName;
- //===== Key Properties
- @Column(name = "KEY_TYPE")
- private String profileKeyType;
- @Column(name = "KEY")
- private String profileKey;
- @Column(name = "KEY_PIN")
- private String profileKeyPIN;
- //===== Doc properties
- @Column(name = "DOC_DIR")
- private String profileDocDir;
- @Column(name = "SIGN_DIR")
- private String profileSignDir;
- @Column(name = "BACKUP_DIR")
- private String profileBackupDir;
- //===== Appearance Properties
- @Column(name = "SIG_VISIBLE" , nullable = false, columnDefinition= "TINIINT (1)")
- private boolean isSigVisible = false;
- @Column(name = "SIG_IMG")
- private String sigImg;
- @Column(name = "SIG_LOCATION")
- private String sigLocation;
- @Column(name = "SIG_DISPLAY_PAGE")
- private int sigDisplayPage;
- //===== Owner
- @ManyToOne
- @JoinColumn(name = "USER_UID" , nullable = false)
- private UserUidDB userUid;
- public int getProfileID() {
- return profileID;
- }
- public void setProfileID(int profileID) {
- this.profileID = profileID;
- }
- public String getProfileName() {
- return profileName;
- }
- public void setProfileName(String profileName) {
- this.profileName = profileName;
- }
- public String getProfileKeyType() {
- return profileKeyType;
- }
- public void setProfileKeyType(String profileKeyType) {
- this.profileKeyType = profileKeyType;
- }
- public String getProfileKey() {
- return profileKey;
- }
- public void setProfileKey(String profileKey) {
- this.profileKey = profileKey;
- }
- public String getProfileKeyPIN() {
- return profileKeyPIN;
- }
- public void setProfileKeyPIN(String profileKeyPIN) {
- this.profileKeyPIN = profileKeyPIN;
- }
- public String getProfileDocDir() {
- return profileDocDir;
- }
- public void setProfileDocDir(String profileDocDir) {
- this.profileDocDir = profileDocDir;
- }
- public String getProfileSignDir() {
- return profileSignDir;
- }
- public void setProfileSignDir(String profileSignDir) {
- this.profileSignDir = profileSignDir;
- }
- public String getProfileBackupDir() {
- return profileBackupDir;
- }
- public void setProfileBackupDir(String profileBackupDir) {
- this.profileBackupDir = profileBackupDir;
- }
- public boolean isSigVisible() {
- return isSigVisible;
- }
- public void setSigVisible(boolean isSigVisible) {
- this.isSigVisible = isSigVisible;
- }
- public String getSigImg() {
- return sigImg;
- }
- public void setSigImg(String sigImg) {
- this.sigImg = sigImg;
- }
- public String getSigLocation() {
- return sigLocation;
- }
- public void setSigLocation(String sigLocation) {
- this.sigLocation = sigLocation;
- }
- public int getSigDisplayPage() {
- return sigDisplayPage;
- }
- public void setSigDisplayPage(int sigDisplayPage) {
- this.sigDisplayPage = sigDisplayPage;
- }
- public UserUidDB getUserUid() {
- return userUid;
- }
- public void setUserUid(UserUidDB userUid) {
- this.userUid = userUid;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement