4 Replies Latest reply on Dec 4, 2006 3:08 PM by André Luis Leal Cardoso Junior

    is not mapped ?

    André Luis Leal Cardoso Junior Newbie

      I'm getting this Exception in the JBoss Seam debug page... and I don't have any idea of what could it be...

      and I'm using jboss-seam-1.1.0.CR1


      Exception during INVOKE_APPLICATION(5): java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: userentity is not mapped [select u.login from userentity u where u.login=:login]



      my userentity ->


      import static org.jboss.seam.ScopeType.SESSION;
      
      import java.io.Serializable;
      
      import javax.persistence.Entity;
      import javax.persistence.Id;
      import javax.persistence.Table;
      
      import org.hibernate.validator.Length;
      import org.hibernate.validator.NotNull;
      
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.Scope;
      
      
      @Entity
      @Name("userentity")
      @Scope(SESSION)
      @Table(name="users")
      public class UsuarioEntity implements Serializable {
      
       private static final long serialVersionUID = 0L;
       private String login;
       private String pass;
       private String email;
      
       public UsuarioEntity(){}
      
       @Id @Length(min=6,max=15)
       public String getLogin() {
       return login;
       }
       public void setLogin(String login) {
       this.login = login;
       }
       @NotNull @Length(min=6,max=15)
       public String getPass() {
       return pass;
       }
       public void setPass(String pass) {
       this.pass = pass;
       }
       @NotNull @Length(max=30)
       public String getEmail() {
       return email;
       }
       public void setEmail(String email) {
       this.email = email;
       }
      }
      


      am I doing something wrong? =S