Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [EJB 3.0] - what´s the error

scott.stark@jboss.org

2007-05-07


Jboss tells me:

javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: com.satdatatelecom.satdataweb.model.usuario.ejb.UsuarioEJB, for columns: [org.hibernate.mapping.Column(idUsuario)]

this is my code:

@Entity
@Table(name="usuario")
public class UsuarioEJB {

 private Double idUsuario;
 private String login;
 private String password;
 private Integer mensajes;
 private Boolean borrado;
 private UsuarioDetallesEJB usuariodetalles;
 private EmpresaEJB empresa;
 private SessionEJB session;
 private ConfUsuarioEJB confUsuarioEJB;
 private List concesiones;

  .......................

    @Id
 @Column(name="idUsuario")
 @GeneratedValue(strategy=GenerationType.IDENTITY)
 public Double getUsuario(){
   return this.idUsuario;
 }


 public void setUsuario(Double idUsuario){
   this.idUsuario = idUsuario;
 }
 ...................

in other aplications i use Long instead Double for id attributes. Can be this
the error? I can??t understand it.

Please help!! Thanks everybody

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

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

_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.