I have a User class into my db, and in my java class:
User
@Entity
public class User extends Model{
@Id
@GeneratedValue
public int id;
public String name;
public String username;
public String email;
public String password;
public String phoneNumber;
public Timestamp inscriptionDate;
public static Finder<String,User> find = new Finder<String,User>(
String.class, User.class
);
}
And I try to retrieve the unique user based on its username using this Ebean statement :
User current = Ebean.find(User.class).where().eq("user.username", username).findUnique();
But I obtain this error:
Query threw SQLException:Column "USER.USERNAME" not found;
Why?
Here is the result of a Select query. (I deleted the value of the fields, but there are some values in it).
