-
1. Re: Unknown error
sashaxiv Apr 26, 2007 6:34 AM (in response to 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.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:196)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1054)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:296)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1039)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1211)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:847)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:385)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy73.start(Unknown Source)
at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96)
at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317)
at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy29.start(Unknown Source)
at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:449)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy30.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:490)
at java.lang.Thread.run(Thread.java:619)
12:24:48,663 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=ConfUsuarioSessionBean,service=EJB3 with dependencies:
12:24:48,663 INFO [JmxKernelAbstraction] persistence.units:unitName=SatDataWeb
12:24:48,679 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=EmpresaFacadeEJB,service=EJB3 with dependencies:
12:24:48,679 INFO [JmxKernelAbstraction] persistence.units:unitName=SatDataWeb
12:24:48,679 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=PermisoFacadeEJB,service=EJB3 with dependencies:
12:24:48,679 INFO [JmxKernelAbstraction] persistence.units:unitName=SatDataWeb
12:24:48,710 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=SensorFacadeEJB,service=EJB3 with dependencies:
12:24:48,710 INFO [JmxKernelAbstraction] persistence.units:unitName=SatDataWeb
12:24:48,710 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=SesionSessionBean,service=EJB3 with dependencies:
12:24:48,710 INFO [JmxKernelAbstraction] persistence.units:unitName=SatDataWeb
12:24:48,710 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=UsuarioFacadeEJB,service=EJB3 with dependencies:
12:24:48,710 INFO [JmxKernelAbstraction] persistence.units:unitName=SatDataWeb
12:24:48,710 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.0.5.GA/server/all/tmp/deploy/tmp30126SatDataWeb101.ear-contents/SatDataWeb.jar
12:24:48,820 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.0.5.GA/server/all/deploy/SatDataWeb101.ear
12:24:49,304 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,unitName=SatdataWeb
State: FAILED
Reason: java.lang.NullPointerException
I Depend On:
jboss.jca:service=DataSourceBinding,name=MSSQLDSSATDATAWEB
ObjectName: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=ConfUsuarioSessionBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=SatDataWeb
ObjectName: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=EmpresaFacadeEJB,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=SatDataWeb
ObjectName: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=PermisoFacadeEJB,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=SatDataWeb
ObjectName: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=SensorFacadeEJB,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=SatDataWeb
ObjectName: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=SesionSessionBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=SatDataWeb
ObjectName: jboss.j2ee:ear=SatDataWeb101.ear,jar=SatDataWeb.jar,name=UsuarioFacadeEJB,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:unitName=SatDataWeb -
2. Re: Unknown error
sashaxiv Apr 27, 2007 5:58 AM (in response to 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!!! -
3. Re: Unknown error
fhh Apr 27, 2007 5:12 PM (in response to sashaxiv)My crystalball tells me... nothing.
Without posting your code nobody will able to help you.
Regards
Felix -
4. Re: Unknown error
sashaxiv May 2, 2007 2:29 AM (in response to 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.EntityManager;
import javax.persistence.PersistenceContext;
import util.exceptions.DuplicateInstanceException;
import util.exceptions.InstanceNotFoundException;
import util.exceptions.InternalErrorException;
com.satdatatelecom.satdataweb.model.usuariofachada.exceptions.UsuarioNotFoundException;
import com.satdatatelecom.satdataweb.model.util.GlobalNames;
@Stateless
public class EmpresaFacadeEJB implements LocalEmpresaFacade, RemoteEmpresaFacade{
@PersistenceContext (unitName=GlobalNames.PERSISTENCE_UNIT)
private EntityManager entityManager;
public EmpresaFacadeEJB(){
}
package com.satdatatelecom.satdataweb.model.util;
public final class GlobalNames {
public static final String SATDATAWEB_DATA_SOURCE = "MSSQLDSSATDATAWEB";
public static final String PERSISTENCE_UNIT = "SatDataWeb";
private GlobalNames () {}
}
and my persistance.xml:
<?xml version="1.0" encoding="UTF-8"?>
<persistence-unit name="SatDataWeb">
<!-- SQLServer -->
<jta-data-source>java:/MSSQLDSSATDATAWEB</jta-data-source>
<!-- SQLServer -->
</persistence-unit> -
5. Re: Unknown error
fhh May 2, 2007 4:05 AM (in response to sashaxiv)
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 annoation so it is not in your service layer but in your model.
Regards
Felix -
6. Re: Unknown error
sashaxiv May 2, 2007 6:33 AM (in response to 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;
.................
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!!! -
7. Re: Unknown error
fhh May 2, 2007 8:54 AM (in response to sashaxiv)
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 and foreign key as well. Either join by unsing the primary key (@PrimaryKeyJoinColumn - this did not work last time I tried on JBoss). Or use a normal FK relationshipon on the user details tables . Or simply use a secondary table mapping.
What works best for you is hard to say. I would take the secondary table approach.
Regards
Felix
Do you speak spanish?
Un pocito. Hay estudiado espanol en la univerisdad pero no hay usadolo por ochos annos. Creo que sera mejor hablar en inglese pero podemos probarlo.
Does that make some sense? :-) -
8. Re: Unknown error
sashaxiv May 2, 2007 1:52 PM (in response to 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!! -
9. Re: Unknown error
fhh May 2, 2007 4:29 PM (in response to sashaxiv)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 key which is not allowed.
Second problem: If you assign a new user details bean to the user bean you would also change the pk of the user bean that doesn't make sense.
So I doubt this would have ever worked. Simply try the @PrimaryKeyJoinColumn. In theory it should do exactly what you want to do.
Try this:@Entity @Table(name="usuario") public class UsuarioEJB { private Integer id; private UsuarioDetallesEJB usuarioDetallesEJB ; @Id @Column(name="idUsuario") public Integer getId() { return this.id; } // setter @OneToOne @PrimaryKeyJoinColumn public UsuarioDetallesEJB getUsuarioDetallesEJB() { return this.id; } //setter }
Regards
Felix -
10. Re: Unknown error
sashaxiv May 3, 2007 2:13 AM (in response to 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!! -
11. Re: Unknown error
sashaxiv May 3, 2007 2:37 AM (in response to 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..... -
12. Re: Unknown error
fhh May 3, 2007 12:23 PM (in response to sashaxiv)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. -
13. Re: Unknown error
sashaxiv May 4, 2007 5:03 AM (in response to 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 and i will use @EmbeddedId. -
14. Re: Unknown error
sotuzun Mar 12, 2008 10:40 AM (in response to sashaxiv)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???