-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add intitution_id to transaction_account
- Loading branch information
Showing
47 changed files
with
2,939 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"fields": [ | ||
{ | ||
"fieldName": "entityName", | ||
"fieldType": "String", | ||
"fieldValidateRules": ["required", "unique"] | ||
} | ||
], | ||
"relationships": [], | ||
"service": "serviceImpl", | ||
"dto": "mapstruct", | ||
"jpaMetamodelFiltering": true, | ||
"readOnly": false, | ||
"pagination": "pagination", | ||
"name": "ReportingEntity", | ||
"changelogDate": "20241115103432", | ||
"incrementalChangelog": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
src/main/java/io/github/erp/domain/ReportingEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
package io.github.erp.domain; | ||
|
||
/*- | ||
* Erp System - Mark X No 10 (Jehoiada Series) Server ver 1.8.2 | ||
* Copyright © 2021 - 2024 Edwin Njeru and the ERP System Contributors ([email protected]) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import java.io.Serializable; | ||
import javax.persistence.*; | ||
import javax.validation.constraints.*; | ||
import org.hibernate.annotations.Cache; | ||
import org.hibernate.annotations.CacheConcurrencyStrategy; | ||
|
||
/** | ||
* A ReportingEntity. | ||
*/ | ||
@Entity | ||
@Table(name = "reporting_entity") | ||
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE) | ||
@org.springframework.data.elasticsearch.annotations.Document(indexName = "reportingentity") | ||
public class ReportingEntity implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequenceGenerator") | ||
@SequenceGenerator(name = "sequenceGenerator") | ||
@Column(name = "id") | ||
private Long id; | ||
|
||
@NotNull | ||
@Column(name = "entity_name", nullable = false, unique = true) | ||
private String entityName; | ||
|
||
// jhipster-needle-entity-add-field - JHipster will add fields here | ||
|
||
public Long getId() { | ||
return this.id; | ||
} | ||
|
||
public ReportingEntity id(Long id) { | ||
this.setId(id); | ||
return this; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getEntityName() { | ||
return this.entityName; | ||
} | ||
|
||
public ReportingEntity entityName(String entityName) { | ||
this.setEntityName(entityName); | ||
return this; | ||
} | ||
|
||
public void setEntityName(String entityName) { | ||
this.entityName = entityName; | ||
} | ||
|
||
// jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (!(o instanceof ReportingEntity)) { | ||
return false; | ||
} | ||
return id != null && id.equals(((ReportingEntity) o).id); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
// see https://vladmihalcea.com/how-to-implement-equals-and-hashcode-using-the-jpa-entity-identifier/ | ||
return getClass().hashCode(); | ||
} | ||
|
||
// prettier-ignore | ||
@Override | ||
public String toString() { | ||
return "ReportingEntity{" + | ||
"id=" + getId() + | ||
", entityName='" + getEntityName() + "'" + | ||
"}"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.