Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.orange.newadelia.model;
- // Generated 3 oct. 2019 11:30:53 by Hibernate Tools 5.4.5.Final
- 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 javax.persistence.Id;
- import javax.persistence.OneToMany;
- import javax.persistence.Table;
- import javax.persistence.Temporal;
- import javax.persistence.TemporalType;
- import org.hibernate.annotations.GenericGenerator;
- import org.hibernate.annotations.Parameter;
- /**
- * TImpactedService generated by hbm2java
- */
- @Entity
- @Table(name = "t_impacted_service")
- public class TImpactedService implements java.io.Serializable {
- @Id
- @GeneratedValue
- @Column(name = "id", unique = true, nullable = false)
- private Integer id;
- @Column(name = "client_type", length = 1)
- private Character clientType;
- @Temporal(TemporalType.DATE)
- @Column(name = "begin_date", length = 13)
- private Date beginDate;
- @Temporal(TemporalType.DATE)
- @Column(name = "last_change_date", length = 13)
- private Date lastChangeDate;
- @Column(name = "pto")
- private String pto;
- @Column(name = "customer_network_element")
- private String customerNetworkElement;
- @Column(name = "nd", nullable = false, length = 20)
- private String nd;
- @Column(name = "is_multiservice", nullable = false)
- private boolean isMultiservice;
- @Column(name = "service_type")
- private String serviceType;
- @Column(name = "family")
- private String family;
- @Column(name = "super_family")
- private String superFamily;
- @Column(name = "category", length = 2)
- private String category;
- @Column(name = "code")
- private String code;
- @Column(name = "state")
- private String state;
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "TImpactedService")
- private Set<TOperationToImpactedService> TOperationToImpactedServices = new HashSet<TOperationToImpactedService>(0);
- public TImpactedService() {
- }
- public TImpactedService(String nd, boolean isMultiservice) {
- this.nd = nd;
- this.isMultiservice = isMultiservice;
- }
- public TImpactedService(String pto) {
- this.pto = pto;
- }
- private TImpactedService(TImpactedServiceBuilder builder) {
- this.clientType = builder.clientType;
- this.beginDate = builder.beginDate;
- this.lastChangeDate = builder.lastChangeDate;
- this.pto = builder.pto;
- this.customerNetworkElement = builder.customerNetworkElement;
- this.nd = builder.nd;
- this.isMultiservice = builder.isMultiservice;
- this.serviceType = builder.serviceType;
- this.family = builder.family;
- this.superFamily = builder.superFamily;
- this.category = builder.category;
- this.code = builder.code;
- this.state = builder.state;
- this.TOperationToImpactedServices = builder.TOperationToImpactedServices;
- }
- public TImpactedService(Character clientType, Date beginDate, Date lastChangeDate, String pto,
- String customerNetworkElement, String nd, boolean isMultiservice, String serviceType, String family,
- String superFamily, String category, String code, String state,
- Set<TOperationToImpactedService> TOperationToImpactedServices) {
- this.clientType = clientType;
- this.beginDate = beginDate;
- this.lastChangeDate = lastChangeDate;
- this.pto = pto;
- this.customerNetworkElement = customerNetworkElement;
- this.nd = nd;
- this.isMultiservice = isMultiservice;
- this.serviceType = serviceType;
- this.family = family;
- this.superFamily = superFamily;
- this.category = category;
- this.code = code;
- this.state = state;
- this.TOperationToImpactedServices = TOperationToImpactedServices;
- }
- @GenericGenerator(name = "com.orange.newadelia.model.TImpactedServiceIdGenerator", strategy = "org.hibernate.id.enhanced.SequenceStyleGenerator", parameters = @Parameter(name = "sequence_name", value = "t_impacted_service_id_seq"))
- public Integer getId() {
- return this.id;
- }
- public void setId(Integer id) {
- this.id = id;
- }
- public Character getClientType() {
- return this.clientType;
- }
- public void setClientType(Character clientType) {
- this.clientType = clientType;
- }
- public Date getBeginDate() {
- return this.beginDate;
- }
- public void setBeginDate(Date beginDate) {
- this.beginDate = beginDate;
- }
- public Date getLastChangeDate() {
- return this.lastChangeDate;
- }
- public void setLastChangeDate(Date lastChangeDate) {
- this.lastChangeDate = lastChangeDate;
- }
- public String getPto() {
- return this.pto;
- }
- public void setPto(String pto) {
- this.pto = pto;
- }
- public String getCustomerNetworkElement() {
- return this.customerNetworkElement;
- }
- public void setCustomerNetworkElement(String customerNetworkElement) {
- this.customerNetworkElement = customerNetworkElement;
- }
- public String getNd() {
- return this.nd;
- }
- public void setNd(String nd) {
- this.nd = nd;
- }
- public boolean isIsMultiservice() {
- return this.isMultiservice;
- }
- public void setIsMultiservice(boolean isMultiservice) {
- this.isMultiservice = isMultiservice;
- }
- public String getServiceType() {
- return this.serviceType;
- }
- public void setServiceType(String serviceType) {
- this.serviceType = serviceType;
- }
- public String getFamily() {
- return this.family;
- }
- public void setFamily(String family) {
- this.family = family;
- }
- public String getSuperFamily() {
- return this.superFamily;
- }
- public void setSuperFamily(String superFamily) {
- this.superFamily = superFamily;
- }
- public String getCategory() {
- return this.category;
- }
- public void setCategory(String category) {
- this.category = category;
- }
- public String getCode() {
- return this.code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- public String getState() {
- return this.state;
- }
- public void setState(String state) {
- this.state = state;
- }
- public Set<TOperationToImpactedService> getTOperationToImpactedServices() {
- return this.TOperationToImpactedServices;
- }
- public void setTOperationToImpactedServices(Set<TOperationToImpactedService> TOperationToImpactedServices) {
- this.TOperationToImpactedServices = TOperationToImpactedServices;
- }
- public static class TImpactedServiceBuilder {
- private Integer id;
- private Character clientType;
- private Date beginDate;
- private Date lastChangeDate;
- private String pto;
- private String customerNetworkElement;
- private String nd;
- private boolean isMultiservice;
- private String serviceType;
- private String family;
- private String superFamily;
- private String category;
- private String code;
- private String state;
- private Set<TOperationToImpactedService> TOperationToImpactedServices = new HashSet<TOperationToImpactedService>(
- 0);
- public TImpactedServiceBuilder(TImpactedServiceBuilder tImpactedServiceBuilder) {
- }
- public TImpactedServiceBuilder(Character clientType, Date beginDate, Date lastChangeDate, String pto,
- String customerNetworkElement, String nd, boolean isMultiservice, String serviceType, String family,
- String superFamily, String category, String code, String state,
- Set<TOperationToImpactedService> TOperationToImpactedServices) {
- this.clientType = clientType;
- this.beginDate = beginDate;
- this.lastChangeDate = lastChangeDate;
- this.pto = pto;
- this.customerNetworkElement = customerNetworkElement;
- this.nd = nd;
- this.isMultiservice = isMultiservice;
- this.serviceType = serviceType;
- this.family = family;
- this.superFamily = superFamily;
- this.category = category;
- this.code = code;
- this.state = state;
- this.TOperationToImpactedServices = TOperationToImpactedServices;
- }
- public TImpactedServiceBuilder(Character clientType) {
- this.clientType = clientType;
- }
- // public Integer getId() {
- // return id;
- // }
- public TImpactedServiceBuilder setId(Integer id) {
- this.id = id;
- return this;
- }
- // public Character getClientType() {
- // return clientType;
- // }
- public TImpactedServiceBuilder setClientType(Character clientType) {
- this.clientType = clientType;
- return this;
- }
- // public Date getBeginDate() {
- // return beginDate;
- // }
- public TImpactedServiceBuilder setBeginDate(Date beginDate) {
- this.beginDate = beginDate;
- return this;
- }
- // public Date getLastChangeDate() {
- // return lastChangeDate;
- // }
- public TImpactedServiceBuilder setLastChangeDate(Date lastChangeDate) {
- this.lastChangeDate = lastChangeDate;
- return this;
- }
- // public String getPto() {
- // return pto;
- // }
- public TImpactedServiceBuilder setPto(String pto) {
- this.pto = pto;
- return this;
- }
- // public String getCustomerNetworkElement() {
- // return customerNetworkElement;
- // }
- public TImpactedServiceBuilder setCustomerNetworkElement(String customerNetworkElement) {
- this.customerNetworkElement = customerNetworkElement;
- return this;
- }
- // public String getNd() {
- // return nd;
- // }
- public TImpactedServiceBuilder setNd(String nd) {
- this.nd = nd;
- return this;
- }
- // public boolean isMultiservice() {
- // return isMultiservice;
- // }
- public TImpactedServiceBuilder setMultiservice(boolean isMultiservice) {
- this.isMultiservice = isMultiservice;
- return this;
- }
- // public String getServiceType() {
- // return serviceType;
- // }
- public TImpactedServiceBuilder setServiceType(String serviceType) {
- this.serviceType = serviceType;
- return this;
- }
- // public String getFamily() {
- // return family;
- // }
- public TImpactedServiceBuilder setFamily(String family) {
- this.family = family;
- return this;
- }
- // public String getSuperFamily() {
- // return superFamily;
- // }
- public TImpactedServiceBuilder setSuperFamily(String superFamily) {
- this.superFamily = superFamily;
- return this;
- }
- // public String getCategory() {
- // return category;
- // }
- public TImpactedServiceBuilder setCategory(String category) {
- this.category = category;
- return this;
- }
- // public String getCode() {
- // return code;
- // }
- public TImpactedServiceBuilder setCode(String code) {
- this.code = code;
- return this;
- }
- // public String getState() {
- // return state;
- // }
- public TImpactedServiceBuilder setState(String state) {
- this.state = state;
- return this;
- }
- // public Set<TOperationToImpactedService> getTOperationToImpactedServices() {
- // return TOperationToImpactedServices;
- // }
- public TImpactedServiceBuilder setTOperationToImpactedServices(Set<TOperationToImpactedService> tOperationToImpactedServices) {
- TOperationToImpactedServices = tOperationToImpactedServices;
- return this;
- }
- public TImpactedService build() {
- return new TImpactedService(this);
- }
- public TImpactedServiceBuilder() {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement