Skip to content

Commit

Permalink
Fixes #84 and fixes #82.
Browse files Browse the repository at this point in the history
Turns out I had to remove the @NotNull from the auto-ident pk I added.
  • Loading branch information
maartenl committed Jul 17, 2019
1 parent b39ac17 commit 24582af
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/
package mmud.commands.guild;

import javax.naming.InitialContext;
import javax.naming.NamingException;
import mmud.Attributes;
import mmud.commands.NormalCommand;
import mmud.database.entities.characters.User;
Expand Down Expand Up @@ -69,8 +67,9 @@ public DisplayInterface run(String command, User aUser) throws MudException
return aUser.getRoom();
}
aUser.setAttribute(Attributes.GUILDWISH, guild.getName());

aUser.writeMessage("You have applied to guild <I>" + guild.getTitle()
+ "</I>.<BR>\r\n");
+ "</I>.<BR>\r\n");
return aUser.getRoom();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
Expand Down Expand Up @@ -49,11 +51,11 @@ public class Charattribute implements Serializable, Attribute
private static final long serialVersionUID = 1L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@NotNull
@Column(name = "attrid")
private Long attributeId;

@Basic(optional = false)
@NotNull
@Size(min = 1, max = 32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
Expand Down Expand Up @@ -48,8 +50,8 @@ public class Roomattribute implements Serializable, Attribute
private static final long serialVersionUID = 1L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@NotNull
@Column(name = "attrid")
private Long attributeId;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
Expand Down Expand Up @@ -49,8 +51,8 @@ public class Itemattribute implements Serializable, Attribute
private static final long serialVersionUID = 1L;

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@NotNull
@Column(name = "attrid")
private Long attributeId;

Expand Down

0 comments on commit 24582af

Please sign in to comment.