package ${groupId}.${artifactId}.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="users")
public class User  {

	private static final long serialVersionUID = 1L;
	
	@Id	@Column(nullable=false, unique=true, length=50)
	private String username;
	@Column(nullable=false, length=50)
	private String password;
	@Column(nullable=false)
	private boolean enabled;
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	
	
}

@@ -310,21 +310,8 @@
 lse,
- unique=true,
  len

remove constraint username=null because column is already id and breaks under hsqldb