add lombok to clean codebase

This commit is contained in:
2025-11-09 18:40:38 +01:00
parent 8d9b10bace
commit c27e68caf0
88 changed files with 704 additions and 7787 deletions
+7
View File
@@ -30,5 +30,12 @@
<version>${querydsl.version}</version>
<classifier>jakarta</classifier>
</dependency>
<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>
@@ -8,12 +8,18 @@ import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import jakarta.persistence.UniqueConstraint;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* The Class Service.
*/
@Entity
@Table(name = "services", uniqueConstraints = @UniqueConstraint(columnNames = { "name" }))
@Getter
@Setter
@NoArgsConstructor
public class Service {
@Id
@@ -29,14 +35,6 @@ public class Service {
private String permission;
@Column(name = "category")
private String category;
/**
* Instantiates a new service.
*/
public Service() {
super();
}
/**
* Instantiates a new service.
*
@@ -49,112 +47,4 @@ public class Service {
this.url = url;
}
/**
* Gets the name.
*
* @return the name
*/
public String getName() {
return name;
}
/**
* Sets the name.
*
* @param name the new name
*/
public void setName(String name) {
this.name = name;
}
/**
* Gets the url.
*
* @return the url
*/
public String getUrl() {
return url;
}
/**
* Sets the url.
*
* @param url the new url
*/
public void setUrl(String url) {
this.url = url;
}
/**
* Checks if is always permitted.
*
* @return true, if is always permitted
*/
public boolean isAlwaysPermitted() {
return alwaysPermitted;
}
/**
* Sets the always permitted.
*
* @param alwaysPermitted the new always permitted
*/
public void setAlwaysPermitted(boolean alwaysPermitted) {
this.alwaysPermitted = alwaysPermitted;
}
/**
* Checks if is same site.
*
* @return true, if is same site
*/
public boolean isSameSite() {
return sameSite;
}
/**
* Sets the same site.
*
* @param sameSite the new same site
*/
public void setSameSite(boolean sameSite) {
this.sameSite = sameSite;
}
/**
* Gets the permission.
*
* @return the permission
*/
public String getPermission() {
return permission;
}
/**
* Sets the permission.
*
* @param permission the new permission
*/
public void setPermission(String permission) {
this.permission = permission;
}
/**
* Gets the category.
*
* @return the category
*/
public String getCategory() {
return category;
}
/**
* Sets the category.
*
* @param category the new category
*/
public void setCategory(String category) {
this.category = category;
}
}