Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.pgalternative.aml.model.hibernate;
- import com.fasterxml.jackson.annotation.JsonIgnore;
- import java.util.Date;
- import java.util.HashSet;
- import java.util.Set;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.FetchType;
- import javax.persistence.GeneratedValue;
- import static javax.persistence.GenerationType.IDENTITY;
- import javax.persistence.Id;
- import javax.persistence.OneToMany;
- import javax.persistence.Table;
- import javax.persistence.Temporal;
- import javax.persistence.TemporalType;
- import javax.persistence.UniqueConstraint;
- import org.hibernate.annotations.Fetch;
- import org.hibernate.annotations.FetchMode;
- import com.pgalternative.aml.model.hibernate.interfaces.IEntitySaveData;
- /**
- * TUtenti010 generated by hbm2java
- */
- @Entity
- @Table(name = "t_utenti_010", catalog = "aml_test", uniqueConstraints = @UniqueConstraint(columnNames = "USERNAME"))
- /*Interfaccia IEntitySaveData custom aggiunta da template - Giuseppe Aniello*/
- public class TUtenti010 implements java.io.Serializable, IEntitySaveData {
- private Integer id;
- private int isEnabled;
- private String username;
- private String password;
- private String nomeCognome;
- private String email;
- private String ruolo;
- private Date DAgg;
- private int idUser;
- private Set<TLog015> TLog015s = new HashSet<TLog015>(0);
- private Set<TUtentiGruppi012> TUtentiGruppi012s = new HashSet<TUtentiGruppi012>(0);
- private Set<TInvestitori002> TInvestitori002s = new HashSet<TInvestitori002>(0);
- public TUtenti010() {
- }
- public TUtenti010(int isEnabled, String username, String password, Date DAgg, int idUser) {
- this.isEnabled = isEnabled;
- this.username = username;
- this.password = password;
- this.DAgg = DAgg;
- this.idUser = idUser;
- }
- public TUtenti010(int isEnabled, String username, String password, String nomeCognome, String email, String ruolo,
- Date DAgg, int idUser, Set<TLog015> TLog015s, Set<TUtentiGruppi012> TUtentiGruppi012s,
- Set<TInvestitori002> TInvestitori002s) {
- this.isEnabled = isEnabled;
- this.username = username;
- this.password = password;
- this.nomeCognome = nomeCognome;
- this.email = email;
- this.ruolo = ruolo;
- this.DAgg = DAgg;
- this.idUser = idUser;
- this.TLog015s = TLog015s;
- this.TUtentiGruppi012s = TUtentiGruppi012s;
- this.TInvestitori002s = TInvestitori002s;
- }
- @Id
- @GeneratedValue(strategy = IDENTITY)
- @Column(name = "ID", unique = true, nullable = false)
- public Integer getId() {
- return this.id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- @Column(name = "IS_ENABLED", nullable = false)
- public int getIsEnabled() {
- return this.isEnabled;
- }
- public void setIsEnabled(int isEnabled) {
- this.isEnabled = isEnabled;
- }
- @Column(name = "USERNAME", unique = true, nullable = false, length = 20)
- public String getUsername() {
- return this.username;
- }
- public void setUsername(String username) {
- this.username = username;
- }
- @Column(name = "PASSWORD", nullable = false, length = 100)
- public String getPassword() {
- return this.password;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- @Column(name = "NOME_COGNOME", length = 100)
- public String getNomeCognome() {
- return this.nomeCognome;
- }
- public void setNomeCognome(String nomeCognome) {
- this.nomeCognome = nomeCognome;
- }
- @Column(name = "EMAIL", length = 200)
- public String getEmail() {
- return this.email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- @Column(name = "RUOLO", length = 50)
- public String getRuolo() {
- return this.ruolo;
- }
- public void setRuolo(String ruolo) {
- this.ruolo = ruolo;
- }
- @Temporal(TemporalType.TIMESTAMP)
- @Column(name = "D_AGG", nullable = false, length = 19)
- public Date getDAgg() {
- return this.DAgg;
- }
- public void setDAgg(Date DAgg) {
- this.DAgg = DAgg;
- }
- @Column(name = "ID_USER", nullable = false)
- public int getIdUser() {
- return this.idUser;
- }
- public void setIdUser(int idUser) {
- this.idUser = idUser;
- }
- @JsonIgnore
- @Fetch(FetchMode.JOIN)
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "TUtenti010")
- public Set<TLog015> getTLog015s() {
- return this.TLog015s;
- }
- public void setTLog015s(Set<TLog015> TLog015s) {
- this.TLog015s = TLog015s;
- }
- @JsonIgnore
- @Fetch(FetchMode.JOIN)
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "TUtenti010")
- public Set<TUtentiGruppi012> getTUtentiGruppi012s() {
- return this.TUtentiGruppi012s;
- }
- public void setTUtentiGruppi012s(Set<TUtentiGruppi012> TUtentiGruppi012s) {
- this.TUtentiGruppi012s = TUtentiGruppi012s;
- }
- @JsonIgnore
- @Fetch(FetchMode.JOIN)
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "TUtenti010")
- public Set<TInvestitori002> getTInvestitori002s() {
- return this.TInvestitori002s;
- }
- public void setTInvestitori002s(Set<TInvestitori002> TInvestitori002s) {
- this.TInvestitori002s = TInvestitori002s;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement