blob: 544d076956dcad4131c3f74689ee5886e2d7841a [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.fineract.cn.stellarbridge.service.internal.repository;
import java.util.Objects;
import javax.persistence.*;
@SuppressWarnings("unused")
@Entity
@Table(name = "nenet_configuration")
public class BridgeConfigurationEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
@Column(name = "tenant_identifier")
private String tenantIdentifier;
@Column(name = "fineract_incoming_identifier")
private String fineractIncomingAccountIdentifier;
@Column(name = "fineract_outgoing_identifier")
private String fineractOutgoingAccountIdentifier;
@Column(name = "stellar_identifier")
private String stellarAccountIdentifier;
public BridgeConfigurationEntity() {
super();
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTenantIdentifier() {
return tenantIdentifier;
}
public void setTenantIdentifier(String tenantIdentifier) {
this.tenantIdentifier = tenantIdentifier;
}
public String getFineractIncomingAccountIdentifier() {
return fineractIncomingAccountIdentifier;
}
public void setFineractIncomingAccountIdentifier(String fineractIncomingAccountIdentifier) {
this.fineractIncomingAccountIdentifier = fineractIncomingAccountIdentifier;
}
public String getFineractOutgoingAccountIdentifier() {
return fineractOutgoingAccountIdentifier;
}
public void setFineractOutgoingAccountIdentifier(String fineractOutgoingAccountIdentifier) {
this.fineractOutgoingAccountIdentifier = fineractOutgoingAccountIdentifier;
}
public String getStellarAccountIdentifier() {
return stellarAccountIdentifier;
}
public void setStellarAccountIdentifier(String stellarAccountIdentifier) {
this.stellarAccountIdentifier = stellarAccountIdentifier;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BridgeConfigurationEntity that = (BridgeConfigurationEntity) o;
return Objects.equals(stellarAccountIdentifier, that.stellarAccountIdentifier);
}
@Override
public int hashCode() {
return Objects.hash(stellarAccountIdentifier);
}
}