I am writing an Play Framework Entity which extends from play.db.ebean.Model
and get this warning from eclipse:
The serializable class user does not declare a static final serialVersionUID field of type long
Can anyone explain this to me? play.db.ebean.Model ( http://www.playframework.com/documentation/2.0.3/api/java/play/db/ebean/Model.html ) doesnt not implement serializable, neither does my User class, ergo I do not understand why eclipse throws the warning.
Here is the important part of my code:
package models;
import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import javax.persistence.Entity;
import javax.persistence.Id;
import crypto.PasswordHash;
import play.Logger;
import play.db.ebean.Model;
import play.data.validation.*;
@Entity
public class User extends Model {
@Id
@Constraints.Email
private String email;
@Constraints.Required
private String name;
@Constraints.Required
@Constraints.MinLength(5)
private String password;
@Constraints.Min(0)
private Integer rating;
...
}