Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lombok dependency added to build.gradle #61

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ dependencies {
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.6.0'
implementation 'org.json:json:20210307'
testImplementation("org.springframework.boot:spring-boot-starter-test")
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
}

wrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,14 @@
import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.*;
import org.fineract.messagegateway.sms.domain.AbstractPersistableCustom;

@Entity
@Table(name="m_tenants")
@Getter
@Setter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class Tenant extends AbstractPersistableCustom<Long> {

@Column(name = "tenant_id", nullable = false)
Expand All @@ -37,35 +41,9 @@ public class Tenant extends AbstractPersistableCustom<Long> {
@Column(name = "description", nullable = true)
private String description ;

protected Tenant() { }

public Tenant(final String tenantId, final String tenantAppKey, final String description) {
this.tenantId = tenantId ;
this.tenantAppKey = tenantAppKey ;
this.description = description ;
}

public String getTenantId() {
return tenantId;
}

public void setTenantId(String tenantId) {
this.tenantId = tenantId;
}

public String getTenantAppKey() {
return tenantAppKey;
}

public void setTenantAppKey(String tenantAppKey) {
this.tenantAppKey = tenantAppKey;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}
}