[jboss-user] [EJB 3.0] - Re: Unknown error

2008-03-12 Thread sotuzun
I have the same problem, and try to use @PrimaryKeyJoinColumn but it does not work. I can not generate a foreign key in a table, it can cause errors in our db. Help about that??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135972#4135972 Reply to the post

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-04 Thread sashaxiv
problem solved . It was a oneToOne relation where the id was shared by two entities and i was using it as a foreign key. Thanks Felix!! this error was in my work another one(in the other topic) about composite keys is for my final university studies project. i gonna change @idClass annotation

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-03 Thread fhh
Two questions: a.) Ist it really the same problem? b.) Ist it the only @OneToOne annotation you have? Regards Felix P.S.: I think you should specify optional false on the user details side. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042896#4042896 Rep

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-02 Thread sashaxiv
I tried what you say but i think your annotation is deprecated and is indicated for class- subclass relations with joined mapping strategy. In fact as i told you i could manage what you say with optional=false in the OneToOne annotation, but my problem still continue. View the original pos

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-02 Thread sashaxiv
i gonna do what you say but if i write optional=false in OneToOne annotation always a user details will be related with a user. anyway, thank you very much. I will tell you what happens!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042717#4042717 Reply to

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-02 Thread fhh
Well, either it is a primary key then the constraint is that its unique and not null. Or it is a foreign key so that it is either null or refers to a row in the related table. What is Hibernate supposed to do, if you set the user details to null? Then you would also assign null to the primary k

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-02 Thread sashaxiv
I can´t see the problem you told me. What´s the problem with the column being primary and foreign key? I did it more times without problems. the bug is killing me!! it was an application in ejb 2.1 and i migrated it to ejb 3.0 thanks Felix!!! Congratulations for your spanish!! View the origi

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-02 Thread fhh
anonymous wrote : | I've studied one to one relations and i think the error is not because of that. | I diagree. Look at your annotations: @Id @OneToOne @JoinColumn(name="idUsuario") public UsuarioEJB getIdUsuario() { return this.idusuario; } This means that the column is primary key an

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-02 Thread sashaxiv
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;

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-02 Thread fhh
anonymous wrote : | As i told you ... | Huh? You didn't tell me anything... All you did was posting your stack trace. Actually you still haven't told me still. | org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:196) | Your error is related to an @OneToOne a

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-05-01 Thread sashaxiv
As i told you i found my error in classes with the @stateless. This is what i do at one of this classes. package com.satdatatelecom.satdataweb.model.empresafachada.ejb; import java.rmi.RemoteException; import java.util.Collection; import javax.ejb.Stateless; import javax.persistence.EntityManag

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-04-27 Thread fhh
My crystalball tells me... nothing. Without posting your code nobody will able to help you. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041567#4041567 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=40

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-04-27 Thread sashaxiv
I continue with the error. I was looking carefully the code, and the error dependencies are in classes with the stateless annotation. Some ideas? Thanks, and sorry about my english!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041323#4041323 Reply to th

[jboss-user] [EJB 3.0] - Re: Unknown error

2007-04-26 Thread sashaxiv
sorry i forget the error. Thanks WARN [ServiceController] Problem starting service persistence.units:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,unitName=SatdataWeb java.lang.NullPointerException at org.hibernate.util.StringHelper.qualify(StringHelper.java:264) at org.hibernate.cfg