added on-demand database cleanup (date is hardcoded for the moment)

This commit is contained in:
Athou
2013-06-16 11:48:23 +02:00
parent 2b6ad62f03
commit 379e342e30
11 changed files with 91 additions and 23 deletions

View File

@@ -11,8 +11,6 @@ import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.Index;
import com.google.common.collect.Sets;
@Entity
@@ -21,11 +19,9 @@ import com.google.common.collect.Sets;
public class User extends AbstractModel {
@Column(length = 32, nullable = false, unique = true)
@Index(name = "username_index")
private String name;
@Column(length = 255, unique = true)
@Index(name = "useremail_index")
private String email;
@Column(length = 256, nullable = false)