import java.io.Serializable;
import java.util.List;
-
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
-
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
-
import com.openpojo.business.annotation.BusinessKey;
-
import uk.co.blackpepper.bowman.annotation.LinkedResource;
@Entity
@Table(name = "northbound_request_ref_lookup")
public class NorthBoundRequest implements Serializable {
- /**
- *
- */
- private static final long serialVersionUID = -2238991039015148725L;
-
- @Id
- @Column(name = "id")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
-
- @BusinessKey
- @Column(name = "MACRO_ACTION")
- private String macroAction;
-
- @BusinessKey
- @Column(name = "ACTION")
- private String action;
-
- @BusinessKey
- @Column(name = "REQUEST_SCOPE")
- private String requestScope;
-
- @BusinessKey
- @Column(name = "IS_ALACARTE")
- private Boolean isAlacarte;
-
- @BusinessKey
- @Column(name = "IS_TOPLEVELFLOW")
- private Boolean isToplevelflow;
-
- @BusinessKey
- @Column(name = "MIN_API_VERSION")
- private Double minApiVersion;
-
- @BusinessKey
- @Column(name = "MAX_API_VERSION")
- private Double maxApiVersion;
-
- @BusinessKey
- @Column(name = "CLOUD_OWNER")
- private String cloudOwner;
-
- @BusinessKey
- @Column(name = "SERVICE_TYPE")
- private String serviceType;
-
- @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "northBoundRequest")
- private List<OrchestrationFlow> orchestrationFlowList;
-
- @Override
- public String toString() {
- return new ToStringBuilder(this).append("id", id).append("action", action).append("requestScope", requestScope)
- .append("isAlacarte", isAlacarte).append("isToplevelflow", isToplevelflow)
- .append("minApiVersion", minApiVersion).append("maxApiVersion", maxApiVersion)
- .append("cloudOwner",cloudOwner).append("serviceType",serviceType).toString();
- }
-
- @Override
- public boolean equals(final Object other) {
- if (!(other instanceof NorthBoundRequest)) {
- return false;
- }
- NorthBoundRequest castOther = (NorthBoundRequest) other;
- return new EqualsBuilder().append(action, castOther.action).append(requestScope, castOther.requestScope)
- .append(isAlacarte, castOther.isAlacarte).append(isToplevelflow, castOther.isToplevelflow)
- .append(minApiVersion, castOther.minApiVersion).append(maxApiVersion, castOther.maxApiVersion)
- .append(cloudOwner, castOther.cloudOwner).append(serviceType, castOther.serviceType)
- .isEquals();
- }
-
- @Override
- public int hashCode() {
- return new HashCodeBuilder().append(action).append(requestScope).append(isAlacarte).append(isToplevelflow)
- .append(minApiVersion).append(maxApiVersion).append(cloudOwner).append(serviceType).toHashCode();
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getAction() {
- return action;
- }
-
- public void setAction(String action) {
- this.action = action;
- }
-
- public String getMacroAction() {
- return macroAction;
- }
-
- public void setMacroAction(String macroAction) {
- this.macroAction = macroAction;
- }
-
- public String getRequestScope() {
- return requestScope;
- }
-
- public void setRequestScope(String requestScope) {
- this.requestScope = requestScope;
- }
-
- public Boolean getIsAlacarte() {
- return isAlacarte;
- }
-
- public void setIsAlacarte(Boolean isAlacarte) {
- this.isAlacarte = isAlacarte;
- }
-
- public Boolean getIsToplevelflow() {
- return isToplevelflow;
- }
-
- public void setIsToplevelflow(Boolean isToplevelflow) {
- this.isToplevelflow = isToplevelflow;
- }
-
- public Double getMinApiVersion() {
- return minApiVersion;
- }
-
- public void setMinApiVersion(Double minApiVersion) {
- this.minApiVersion = minApiVersion;
- }
-
- public Double getMaxApiVersion() {
- return maxApiVersion;
- }
-
- public void setMaxApiVersion(Double maxApiVersion) {
- this.maxApiVersion = maxApiVersion;
- }
-
- public String getCloudOwner() {
- return cloudOwner;
- }
-
- public void setCloudOwner(String cloudOwner) {
- this.cloudOwner = cloudOwner;
- }
-
- public String getServiceType() {
- return serviceType;
- }
-
- public void setServiceType(String serviceType) {
- this.serviceType = serviceType;
- }
-
- @LinkedResource
- public List<OrchestrationFlow> getOrchestrationFlowList() {
- return orchestrationFlowList;
- }
-
- public void setOrchestrationFlowList(List<OrchestrationFlow> orchestrationFlowList) {
- this.orchestrationFlowList = orchestrationFlowList;
- }
+ /**
+ *
+ */
+ private static final long serialVersionUID = -2238991039015148725L;
+
+ @Id
+ @Column(name = "id")
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
+ private Integer id;
+
+ @BusinessKey
+ @Column(name = "MACRO_ACTION")
+ private String macroAction;
+
+ @BusinessKey
+ @Column(name = "ACTION")
+ private String action;
+
+ @BusinessKey
+ @Column(name = "REQUEST_SCOPE")
+ private String requestScope;
+
+ @BusinessKey
+ @Column(name = "IS_ALACARTE")
+ private Boolean isAlacarte;
+
+ @BusinessKey
+ @Column(name = "IS_TOPLEVELFLOW")
+ private Boolean isToplevelflow;
+
+ @BusinessKey
+ @Column(name = "MIN_API_VERSION")
+ private Double minApiVersion;
+
+ @BusinessKey
+ @Column(name = "MAX_API_VERSION")
+ private Double maxApiVersion;
+
+ @BusinessKey
+ @Column(name = "CLOUD_OWNER")
+ private String cloudOwner;
+
+ @BusinessKey
+ @Column(name = "SERVICE_TYPE")
+ private String serviceType;
+
+ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "northBoundRequest")
+ private List<OrchestrationFlow> orchestrationFlowList;
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this).append("id", id).append("action", action).append("requestScope", requestScope)
+ .append("isAlacarte", isAlacarte).append("isToplevelflow", isToplevelflow)
+ .append("minApiVersion", minApiVersion).append("maxApiVersion", maxApiVersion)
+ .append("cloudOwner", cloudOwner).append("serviceType", serviceType).toString();
+ }
+
+ @Override
+ public boolean equals(final Object other) {
+ if (!(other instanceof NorthBoundRequest)) {
+ return false;
+ }
+ NorthBoundRequest castOther = (NorthBoundRequest) other;
+ return new EqualsBuilder().append(action, castOther.action).append(requestScope, castOther.requestScope)
+ .append(isAlacarte, castOther.isAlacarte).append(isToplevelflow, castOther.isToplevelflow)
+ .append(minApiVersion, castOther.minApiVersion).append(maxApiVersion, castOther.maxApiVersion)
+ .append(cloudOwner, castOther.cloudOwner).append(serviceType, castOther.serviceType).isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(action).append(requestScope).append(isAlacarte).append(isToplevelflow)
+ .append(minApiVersion).append(maxApiVersion).append(cloudOwner).append(serviceType).toHashCode();
+ }
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getAction() {
+ return action;
+ }
+
+ public void setAction(String action) {
+ this.action = action;
+ }
+
+ public String getMacroAction() {
+ return macroAction;
+ }
+
+ public void setMacroAction(String macroAction) {
+ this.macroAction = macroAction;
+ }
+
+ public String getRequestScope() {
+ return requestScope;
+ }
+
+ public void setRequestScope(String requestScope) {
+ this.requestScope = requestScope;
+ }
+
+ public Boolean getIsAlacarte() {
+ return isAlacarte;
+ }
+
+ public void setIsAlacarte(Boolean isAlacarte) {
+ this.isAlacarte = isAlacarte;
+ }
+
+ public Boolean getIsToplevelflow() {
+ return isToplevelflow;
+ }
+
+ public void setIsToplevelflow(Boolean isToplevelflow) {
+ this.isToplevelflow = isToplevelflow;
+ }
+
+ public Double getMinApiVersion() {
+ return minApiVersion;
+ }
+
+ public void setMinApiVersion(Double minApiVersion) {
+ this.minApiVersion = minApiVersion;
+ }
+
+ public Double getMaxApiVersion() {
+ return maxApiVersion;
+ }
+
+ public void setMaxApiVersion(Double maxApiVersion) {
+ this.maxApiVersion = maxApiVersion;
+ }
+
+ public String getCloudOwner() {
+ return cloudOwner;
+ }
+
+ public void setCloudOwner(String cloudOwner) {
+ this.cloudOwner = cloudOwner;
+ }
+
+ public String getServiceType() {
+ return serviceType;
+ }
+
+ public void setServiceType(String serviceType) {
+ this.serviceType = serviceType;
+ }
+
+ @LinkedResource
+ public List<OrchestrationFlow> getOrchestrationFlowList() {
+ return orchestrationFlowList;
+ }
+
+ public void setOrchestrationFlowList(List<OrchestrationFlow> orchestrationFlowList) {
+ this.orchestrationFlowList = orchestrationFlowList;
+ }
}