mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-19 07:26:31 +00:00
Resolves checkstyle issues for semaphore servant serverless service-layer service-locator (#1079)
* Reduces checkstyle errors in semaphore * Reduces checkstyle errors in servant * Reduces checkstyle errors in serverless * Reduces checkstyle errors in service-layer * Reduces checkstyle errors in service-locator
This commit is contained in:
committed by
Ilkka Seppälä
parent
37599eb48f
commit
390795154f
@@ -23,6 +23,8 @@
|
||||
|
||||
package com.iluwatar.servicelayer.spell;
|
||||
|
||||
import com.iluwatar.servicelayer.common.BaseEntity;
|
||||
import com.iluwatar.servicelayer.spellbook.Spellbook;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
@@ -31,13 +33,8 @@ import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import com.iluwatar.servicelayer.common.BaseEntity;
|
||||
import com.iluwatar.servicelayer.spellbook.Spellbook;
|
||||
|
||||
/**
|
||||
*
|
||||
* Spell entity.
|
||||
*
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "SPELL")
|
||||
@@ -54,13 +51,14 @@ public class Spell extends BaseEntity {
|
||||
@JoinColumn(name = "SPELLBOOK_ID_FK", referencedColumnName = "SPELLBOOK_ID")
|
||||
private Spellbook spellbook;
|
||||
|
||||
public Spell() {}
|
||||
public Spell() {
|
||||
}
|
||||
|
||||
public Spell(String name) {
|
||||
this();
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
@@ -68,7 +66,7 @@ public class Spell extends BaseEntity {
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user