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

sashaxiv do-not-reply at jboss.com
Mon May 7 03:43:26 EDT 2007


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




More information about the jboss-user mailing list