add long keys to all entities

This commit is contained in:
Athou
2013-03-23 01:49:39 +01:00
parent 4197c5e1ae
commit 7e105ff7bb
11 changed files with 44 additions and 102 deletions

View File

@@ -1,22 +1,13 @@
package com.commafeed.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "USERS")
@SuppressWarnings("serial")
public class User implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
public class User extends AbstractModel {
@Column(length = 32)
private String name;
@@ -43,14 +34,6 @@ public class User implements Serializable {
this.password = password;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public byte[] getSalt() {
return salt;
}