squid:S1213 - The members of an interface declaration or class should appear in a pre-defined order

This commit is contained in:
Mohammed Ezzat
2016-02-06 01:10:56 +02:00
parent 33224dd7d7
commit 9c5745763d
11 changed files with 106 additions and 106 deletions
@@ -44,18 +44,22 @@ public class Spell extends BaseEntity {
private String name;
@Id
@GeneratedValue
@Column(name = "SPELL_ID")
private Long id;
@ManyToOne
@JoinColumn(name = "SPELLBOOK_ID_FK", referencedColumnName = "SPELLBOOK_ID")
private Spellbook spellbook;
public Spell() {}
public Spell(String name) {
this();
this.name = name;
}
@Id
@GeneratedValue
@Column(name = "SPELL_ID")
private Long id;
public Long getId() {
return id;
}
@@ -63,11 +67,7 @@ public class Spell extends BaseEntity {
public void setId(Long id) {
this.id = id;
}
@ManyToOne
@JoinColumn(name = "SPELLBOOK_ID_FK", referencedColumnName = "SPELLBOOK_ID")
private Spellbook spellbook;
public String getName() {
return name;
}