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
@@ -25,5 +25,12 @@
<version>${querydsl.version}</version>
<classifier>jakarta</classifier>
</dependency>
<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>
@@ -14,12 +14,16 @@ import jakarta.persistence.Lob;
import jakarta.persistence.Table;
import de.bstly.we.model.UserData;
import lombok.Getter;
import lombok.Setter;
/**
* The Class Invite.
*/
@Entity
@Table(name = "invites")
@Getter
@Setter
public class Invite implements UserData {
@Id
@@ -41,238 +45,4 @@ public class Invite implements UserData {
private String codeLink;
private String url;
/**
* Gets the id.
*
* @return the id
*/
public Long getId() {
return id;
}
/**
* Sets the id.
*
* @param id the new id
*/
public void setId(Long id) {
this.id = id;
}
/**
* Gets the owner.
*
* @return the owner
*/
public Long getOwner() {
return owner;
}
/**
* Sets the owner.
*
* @param owner the new owner
*/
public void setOwner(Long owner) {
this.owner = owner;
}
/**
* Gets the code.
*
* @return the code
*/
public String getCode() {
return code;
}
/**
* Sets the code.
*
* @param code the new code
*/
public void setCode(String code) {
this.code = code;
}
/**
* Gets the item.
*
* @return the item
*/
public Integer getItem() {
return item;
}
/**
* Sets the item.
*
* @param item the new item
*/
public void setItem(Integer item) {
this.item = item;
}
/**
* Gets the quota.
*
* @return the quota
*/
public String getQuota() {
return quota;
}
/**
* Sets the quota.
*
* @param quota the new quota
*/
public void setQuota(String quota) {
this.quota = quota;
}
/**
* Gets the starts.
*
* @return the starts
*/
public Instant getStarts() {
return starts;
}
/**
* Sets the starts.
*
* @param starts the new starts
*/
public void setStarts(Instant starts) {
this.starts = starts;
}
/**
* Gets the expires.
*
* @return the expires
*/
public Instant getExpires() {
return expires;
}
/**
* Sets the expires.
*
* @param expires the new expires
*/
public void setExpires(Instant expires) {
this.expires = expires;
}
/**
* Gets the message.
*
* @return the message
*/
public String getMessage() {
return message;
}
/**
* Sets the message.
*
* @param message the new message
*/
public void setMessage(String message) {
this.message = message;
}
/**
* Gets the note.
*
* @return the note
*/
public String getNote() {
return note;
}
/**
* Sets the note.
*
* @param note the new note
*/
public void setNote(String note) {
this.note = note;
}
/**
* Checks if is redeemed.
*
* @return true, if is redeemed
*/
public boolean isRedeemed() {
return redeemed;
}
/**
* Sets the redeemed.
*
* @param redeemed the new redeemed
*/
public void setRedeemed(boolean redeemed) {
this.redeemed = redeemed;
}
/**
* Gets the redeemed by.
*
* @return the redeemed by
*/
public Long getRedeemedBy() {
return redeemedBy;
}
/**
* Sets the redeemed by.
*
* @param redeemedBy the new redeemed by
*/
public void setRedeemedBy(Long redeemedBy) {
this.redeemedBy = redeemedBy;
}
/**
* Gets the code link.
*
* @return the code link
*/
public String getCodeLink() {
return codeLink;
}
/**
* Sets the code link.
*
* @param codeLink the new code link
*/
public void setCodeLink(String codeLink) {
this.codeLink = codeLink;
}
/**
* 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;
}
}
@@ -9,12 +9,16 @@ import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;
/**
* The Class InviteMapping.
*/
@Entity
@Table(name = "invite_mapping")
@Getter
@Setter
public class InviteMapping {
public static final String QUOTA_PREFIX = "invite_";
@@ -30,148 +34,4 @@ public class InviteMapping {
private String url;
private String defaultMessage;
/**
* Gets the quota.
*
* @return the quota
*/
public String getQuota() {
return quota;
}
/**
* Sets the quota.
*
* @param quota the new quota
*/
public void setQuota(String quota) {
this.quota = quota;
}
/**
* Gets the item.
*
* @return the item
*/
public Integer getItem() {
return item;
}
/**
* Sets the item.
*
* @param item the new item
*/
public void setItem(Integer item) {
this.item = item;
}
/**
* Gets the starts.
*
* @return the starts
*/
public Instant getStarts() {
return starts;
}
/**
* Sets the starts.
*
* @param starts the new starts
*/
public void setStarts(Instant starts) {
this.starts = starts;
}
/**
* Gets the expires.
*
* @return the expires
*/
public Instant getExpires() {
return expires;
}
/**
* Sets the expires.
*
* @param expires the new expires
*/
public void setExpires(Instant expires) {
this.expires = expires;
}
/**
* Gets the message limit.
*
* @return the message limit
*/
public Integer getMessageLimit() {
return messageLimit;
}
/**
* Sets the message limit.
*
* @param messageLimit the new message limit
*/
public void setMessageLimit(Integer messageLimit) {
this.messageLimit = messageLimit;
}
/**
* Gets the code link.
*
* @return the code link
*/
public String getCodeLink() {
return codeLink;
}
/**
* Sets the code link.
*
* @param codeLink the new code link
*/
public void setCodeLink(String codeLink) {
this.codeLink = codeLink;
}
/**
* 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;
}
/**
* Gets the default message.
*
* @return the default message
*/
public String getDefaultMessage() {
return defaultMessage;
}
/**
* Sets the default message.
*
* @param defaultMessage the new default message
*/
public void setDefaultMessage(String defaultMessage) {
this.defaultMessage = defaultMessage;
}
}