- package net.iocanel.blog.management.support.persistence;
- import java.io.Serializable;
- import javax.persistence.Basic;
- import javax.persistence.Column;
- import javax.persistence.Entity;
- import javax.persistence.Id;
- import javax.persistence.Lob;
- import javax.persistence.Table;
- /**
- *
- * @author iocanel
- */
- @Entity
- @Table(name = "ENDPOINT_CONFIGURATION", catalog = "blog", schema = "")
- public class EndpointConfiguration implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @Column(name = "ENDPOINT_ID", nullable = false, length = 80)
- private String endpointId;
- @Basic(optional = false)
- @Lob
- @Column(name = "CONFIGURATION", nullable = false, length = 65535)
- private String configuration;
- public EndpointConfiguration() {
- }
- public EndpointConfiguration(String endpointId) {
- this.endpointId = endpointId;
- }
- public EndpointConfiguration(String endpointId, String configuration) {
- this.endpointId = endpointId;
- this.configuration = configuration;
- }
- public String getEndpointId() {
- return endpointId;
- }
- public void setEndpointId(String endpointId) {
- this.endpointId = endpointId;
- }
- public String getConfiguration() {
- return configuration;
- }
- public void setConfiguration(String configuration) {
- this.configuration = configuration;
- }
- @Override
- public int hashCode() {
- int hash = 0;
- hash += (endpointId != null ? endpointId.hashCode() : 0);
- return hash;
- }
- @Override
- public boolean equals(Object object) {
- // TODO: Warning - this method won't work in the case the id fields are not set
- if (!(object instanceof EndpointConfiguration)) {
- return false;
- }
- EndpointConfiguration other = (EndpointConfiguration) object;
- if ((this.endpointId == null && other.endpointId != null) || (this.endpointId != null && !this.endpointId.equals(other.endpointId))) {
- return false;
- }
- return true;
- }
- @Override
- public String toString() {
- return "net.iocanel.blog.management.support.EndpointConfiguration[endpointId=" + endpointId + "]";
- }
- }