Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.94 KB | None | 0 0
  1. package com.pgalternative.aml.model.hibernate;
  2.  
  3. import com.fasterxml.jackson.annotation.JsonIgnore;
  4. import java.util.Date;
  5. import java.util.HashSet;
  6. import java.util.Set;
  7. import javax.persistence.Column;
  8. import javax.persistence.Entity;
  9. import javax.persistence.FetchType;
  10. import javax.persistence.GeneratedValue;
  11. import static javax.persistence.GenerationType.IDENTITY;
  12. import javax.persistence.Id;
  13. import javax.persistence.OneToMany;
  14. import javax.persistence.Table;
  15. import javax.persistence.Temporal;
  16. import javax.persistence.TemporalType;
  17. import javax.persistence.UniqueConstraint;
  18. import org.hibernate.annotations.Fetch;
  19. import org.hibernate.annotations.FetchMode;
  20.  
  21. import com.pgalternative.aml.model.hibernate.interfaces.IEntitySaveData;
  22.  
  23. /**
  24.  * TUtenti010 generated by hbm2java
  25.  */
  26. @Entity
  27. @Table(name = "t_utenti_010", catalog = "aml_test", uniqueConstraints = @UniqueConstraint(columnNames = "USERNAME"))
  28. /*Interfaccia IEntitySaveData custom aggiunta da template - Giuseppe Aniello*/
  29. public class TUtenti010 implements java.io.Serializable, IEntitySaveData {
  30.  
  31.     private Integer id;
  32.     private int isEnabled;
  33.     private String username;
  34.     private String password;
  35.     private String nomeCognome;
  36.     private String email;
  37.     private String ruolo;
  38.     private Date DAgg;
  39.     private int idUser;
  40.     private Set<TLog015> TLog015s = new HashSet<TLog015>(0);
  41.     private Set<TUtentiGruppi012> TUtentiGruppi012s = new HashSet<TUtentiGruppi012>(0);
  42.     private Set<TInvestitori002> TInvestitori002s = new HashSet<TInvestitori002>(0);
  43.  
  44.     public TUtenti010() {
  45.     }
  46.  
  47.     public TUtenti010(int isEnabled, String username, String password, Date DAgg, int idUser) {
  48.         this.isEnabled = isEnabled;
  49.         this.username = username;
  50.         this.password = password;
  51.         this.DAgg = DAgg;
  52.         this.idUser = idUser;
  53.     }
  54.  
  55.     public TUtenti010(int isEnabled, String username, String password, String nomeCognome, String email, String ruolo,
  56.             Date DAgg, int idUser, Set<TLog015> TLog015s, Set<TUtentiGruppi012> TUtentiGruppi012s,
  57.             Set<TInvestitori002> TInvestitori002s) {
  58.         this.isEnabled = isEnabled;
  59.         this.username = username;
  60.         this.password = password;
  61.         this.nomeCognome = nomeCognome;
  62.         this.email = email;
  63.         this.ruolo = ruolo;
  64.         this.DAgg = DAgg;
  65.         this.idUser = idUser;
  66.         this.TLog015s = TLog015s;
  67.         this.TUtentiGruppi012s = TUtentiGruppi012s;
  68.         this.TInvestitori002s = TInvestitori002s;
  69.     }
  70.  
  71.     @Id
  72.     @GeneratedValue(strategy = IDENTITY)
  73.  
  74.     @Column(name = "ID", unique = true, nullable = false)
  75.     public Integer getId() {
  76.         return this.id;
  77.     }
  78.  
  79.     public void setId(Integer id) {
  80.         this.id = id;
  81.     }
  82.  
  83.     @Column(name = "IS_ENABLED", nullable = false)
  84.     public int getIsEnabled() {
  85.         return this.isEnabled;
  86.     }
  87.  
  88.     public void setIsEnabled(int isEnabled) {
  89.         this.isEnabled = isEnabled;
  90.     }
  91.  
  92.     @Column(name = "USERNAME", unique = true, nullable = false, length = 20)
  93.     public String getUsername() {
  94.         return this.username;
  95.     }
  96.  
  97.     public void setUsername(String username) {
  98.         this.username = username;
  99.     }
  100.  
  101.     @Column(name = "PASSWORD", nullable = false, length = 100)
  102.     public String getPassword() {
  103.         return this.password;
  104.     }
  105.  
  106.     public void setPassword(String password) {
  107.         this.password = password;
  108.     }
  109.  
  110.     @Column(name = "NOME_COGNOME", length = 100)
  111.     public String getNomeCognome() {
  112.         return this.nomeCognome;
  113.     }
  114.  
  115.     public void setNomeCognome(String nomeCognome) {
  116.         this.nomeCognome = nomeCognome;
  117.     }
  118.  
  119.     @Column(name = "EMAIL", length = 200)
  120.     public String getEmail() {
  121.         return this.email;
  122.     }
  123.  
  124.     public void setEmail(String email) {
  125.         this.email = email;
  126.     }
  127.  
  128.     @Column(name = "RUOLO", length = 50)
  129.     public String getRuolo() {
  130.         return this.ruolo;
  131.     }
  132.  
  133.     public void setRuolo(String ruolo) {
  134.         this.ruolo = ruolo;
  135.     }
  136.  
  137.     @Temporal(TemporalType.TIMESTAMP)
  138.     @Column(name = "D_AGG", nullable = false, length = 19)
  139.     public Date getDAgg() {
  140.         return this.DAgg;
  141.     }
  142.  
  143.     public void setDAgg(Date DAgg) {
  144.         this.DAgg = DAgg;
  145.     }
  146.  
  147.     @Column(name = "ID_USER", nullable = false)
  148.     public int getIdUser() {
  149.         return this.idUser;
  150.     }
  151.  
  152.     public void setIdUser(int idUser) {
  153.         this.idUser = idUser;
  154.     }
  155.  
  156.     @JsonIgnore
  157.     @Fetch(FetchMode.JOIN)
  158.     @OneToMany(fetch = FetchType.LAZY, mappedBy = "TUtenti010")
  159.     public Set<TLog015> getTLog015s() {
  160.         return this.TLog015s;
  161.     }
  162.  
  163.     public void setTLog015s(Set<TLog015> TLog015s) {
  164.         this.TLog015s = TLog015s;
  165.     }
  166.  
  167.     @JsonIgnore
  168.     @Fetch(FetchMode.JOIN)
  169.     @OneToMany(fetch = FetchType.LAZY, mappedBy = "TUtenti010")
  170.     public Set<TUtentiGruppi012> getTUtentiGruppi012s() {
  171.         return this.TUtentiGruppi012s;
  172.     }
  173.  
  174.     public void setTUtentiGruppi012s(Set<TUtentiGruppi012> TUtentiGruppi012s) {
  175.         this.TUtentiGruppi012s = TUtentiGruppi012s;
  176.     }
  177.  
  178.     @JsonIgnore
  179.     @Fetch(FetchMode.JOIN)
  180.     @OneToMany(fetch = FetchType.LAZY, mappedBy = "TUtenti010")
  181.     public Set<TInvestitori002> getTInvestitori002s() {
  182.         return this.TInvestitori002s;
  183.     }
  184.  
  185.     public void setTInvestitori002s(Set<TInvestitori002> TInvestitori002s) {
  186.         this.TInvestitori002s = TInvestitori002s;
  187.     }
  188.  
  189. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement