I'm very new to java. What I want to do is the following :
I created a field called newsletter in the DB. Cause I want learn to understand Java, I took over a field called female. This declares if the user is female or male. The field is set to BIT and can contain a NULL.
this works well. The only problem I have is, that it shows up with this error :
Caused by javax.el.ELException with message: "/layout/inc/community/profile/profileAbout.xhtml: Property 'newsletter' not found on type com.server.entity.application.User
I wrote this code to com.server.entity.application.User
private Boolean newsletter;
public void setNewsletter(Boolean newsletter)
{
this.newsletter = newsletter;
}
public Boolean getNewsletter()
{
return newsletter;
}