I've studied one to one relations and i think the error is not because of that.
This is an example in my model.
@Entity
@Table(name="usuarioDetalles")
public class UsuarioDetallesEJB {
private UsuarioEJB idusuario;
private String nombre;
private String apellidos;
.................
private String pais;
private String codigoPostal;
private String observaciones;
private Calendar creacion;
public UsuarioDetallesEJB () {}
................................
@Id
@OneToOne
@JoinColumn(name="idUsuario")
public UsuarioEJB getIdUsuario() {
return this.idusuario;
}
---------------------------------------------------------------
@Entity
@Table(name="usuario")
public class UsuarioEJB {
...................
@OneToOne(mappedBy="idUsuario")
public UsuarioDetallesEJB getUsuariodetalles() {
return usuariodetalles;
}
.....................
Thanks Felix!! Do you speak spanish?
it would be fine!!!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042365#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...