[jboss-user] [JBoss Seam] - is not mapped ?

Andreh do-not-reply at jboss.com
Mon Dec 4 14:20:07 EST 2006


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

anonymous wrote : 
  | 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 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991080#3991080

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991080



More information about the jboss-user mailing list