Kawai Wiki

Compare Revisions

Ignore whitespace Rev 10 → Rev 11

/trunk/src/main/java/org/kawai/model/User.java
2,40 → 2,18
 
import java.util.Locale;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
 
/**
* The annotations are only necessary if you are using Hibernate.
* If you are using MentaBean they are not necessary.
*
* @author sergio.oliveira.jr@gmail.com
*/
@Entity
@Table(name = "users")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int id;
@Column(name = "username")
private String username;
@Column(name = "password")
private String password;
@Column(name = "email")
private String email;
@Column(name = "language_id")
private int languageId;
@Column(name = "group_id")
private int groupId;
public User() { }