Advertisement
DKKs

SignatureProfileDB

Aug 20th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.89 KB | None | 0 0
  1. package th.in.oneauthen.object;
  2.  
  3. import java.io.Serializable;
  4.  
  5. import javax.persistence.Column;
  6. import javax.persistence.Entity;
  7. import javax.persistence.GeneratedValue;
  8. import javax.persistence.Id;
  9. import javax.persistence.JoinColumn;
  10. import javax.persistence.ManyToOne;
  11. import javax.persistence.NamedQueries;
  12. import javax.persistence.NamedQuery;
  13. import javax.persistence.Table;
  14.  
  15.  
  16. @Entity
  17. @Table(name="SIGNATURE_PROFILE")
  18. @NamedQueries(value = {
  19.     @NamedQuery(name="getSignatureProfileByNameAndOwner", query="SELECT sProfile FROM SignatureProfileDB sProfile WHERE sProfile.profileName = :profileName AND sProfile.userUid = :userUid"),
  20.     @NamedQuery(name="listSignatureProfileByOwner", query="SELECT sProfile FROM SignatureProfileDB sProfile WHERE sProfile.userUid = :userUid")
  21. })
  22.    
  23.  
  24. public class SignatureProfileDB implements Serializable {
  25.  
  26.     /**
  27.      *
  28.      */
  29.     private static final long serialVersionUID = -1604323689026629990L;
  30.  
  31.     @Id
  32.     @GeneratedValue @Column(name ="ID")
  33.     private int profileID;
  34.    
  35.     @Column(name = "NAME", nullable = false)
  36.     private String profileName;
  37. //===== Key Properties 
  38.     @Column(name = "KEY_TYPE")
  39.     private String profileKeyType;
  40.     @Column(name = "KEY")
  41.     private String profileKey;
  42.     @Column(name = "KEY_PIN")
  43.     private String profileKeyPIN;
  44. //===== Doc properties 
  45.     @Column(name = "DOC_DIR")
  46.     private String profileDocDir;
  47.     @Column(name = "SIGN_DIR")
  48.     private String profileSignDir;
  49.     @Column(name = "BACKUP_DIR")
  50.     private String profileBackupDir;
  51. //===== Appearance Properties
  52.     @Column(name = "SIG_VISIBLE" , nullable = false, columnDefinition= "TINIINT (1)")
  53.     private boolean isSigVisible = false;
  54.     @Column(name = "SIG_IMG")
  55.     private String sigImg;
  56.     @Column(name = "SIG_LOCATION")
  57.     private String sigLocation;
  58.     @Column(name = "SIG_DISPLAY_PAGE")
  59.     private int sigDisplayPage;
  60.    
  61. //===== Owner
  62.     @ManyToOne
  63.     @JoinColumn(name = "USER_UID" , nullable = false)
  64.     private UserUidDB userUid;
  65.    
  66.     public int getProfileID() {
  67.         return profileID;
  68.     }
  69.     public void setProfileID(int profileID) {
  70.         this.profileID = profileID;
  71.     }
  72.     public String getProfileName() {
  73.         return profileName;
  74.     }
  75.     public void setProfileName(String profileName) {
  76.         this.profileName = profileName;
  77.     }
  78.     public String getProfileKeyType() {
  79.         return profileKeyType;
  80.     }
  81.     public void setProfileKeyType(String profileKeyType) {
  82.         this.profileKeyType = profileKeyType;
  83.     }
  84.     public String getProfileKey() {
  85.         return profileKey;
  86.     }
  87.     public void setProfileKey(String profileKey) {
  88.         this.profileKey = profileKey;
  89.     }
  90.     public String getProfileKeyPIN() {
  91.         return profileKeyPIN;
  92.     }
  93.     public void setProfileKeyPIN(String profileKeyPIN) {
  94.         this.profileKeyPIN = profileKeyPIN;
  95.     }
  96.     public String getProfileDocDir() {
  97.         return profileDocDir;
  98.     }
  99.     public void setProfileDocDir(String profileDocDir) {
  100.         this.profileDocDir = profileDocDir;
  101.     }
  102.     public String getProfileSignDir() {
  103.         return profileSignDir;
  104.     }
  105.     public void setProfileSignDir(String profileSignDir) {
  106.         this.profileSignDir = profileSignDir;
  107.     }
  108.     public String getProfileBackupDir() {
  109.         return profileBackupDir;
  110.     }
  111.     public void setProfileBackupDir(String profileBackupDir) {
  112.         this.profileBackupDir = profileBackupDir;
  113.     }
  114.     public boolean isSigVisible() {
  115.         return isSigVisible;
  116.     }
  117.     public void setSigVisible(boolean isSigVisible) {
  118.         this.isSigVisible = isSigVisible;
  119.     }
  120.     public String getSigImg() {
  121.         return sigImg;
  122.     }
  123.     public void setSigImg(String sigImg) {
  124.         this.sigImg = sigImg;
  125.     }
  126.     public String getSigLocation() {
  127.         return sigLocation;
  128.     }
  129.     public void setSigLocation(String sigLocation) {
  130.         this.sigLocation = sigLocation;
  131.     }
  132.     public int getSigDisplayPage() {
  133.         return sigDisplayPage;
  134.     }
  135.     public void setSigDisplayPage(int sigDisplayPage) {
  136.         this.sigDisplayPage = sigDisplayPage;
  137.     }
  138.     public UserUidDB getUserUid() {
  139.         return userUid;
  140.     }
  141.     public void setUserUid(UserUidDB userUid) {
  142.         this.userUid = userUid;
  143.     }
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement