From: michael.c.small <do-...@jb...> - 2006-02-01 22:20:35
|
I have a strange error occuring when I attempt to merge an EJB entity. Her= e's the overview, there is an embedded superclass named ValueObject that de= fines the primary key for all class inheriting from it. In this case, I ha= ve a entity named Relationship. A Relationship entity has a @OneToOne with= another entity named Provider. When I attempt to call entityManager.merge= (relationship), I get the following stack trace: | org.hibernate.exception.GenericJDBCException: could not load an entity:= [com.tasconline.provider.Provider#com.tasconline.relationship.Relationship= @ec9361[internalKey=3D40,created=3D2006-01-30 08:23:10.0,createdBy=3Dcom.ta= sconline.relationship.RelationshipId@107e9af[id=3D0000000-0000001],lastUpda= ted=3D2006-01-30 08:23:10.0,lastUpdatedBy=3Dcom.tasconline.relationship.Rel= ationshipId@1b60b98[id=3D0000000-0000001],version=3D0,relationshipId=3Dcom.= tasconline.relationship.RelationshipId@95159b[id=3D4400000-0003939],loginId= =3Dcom.tasconline.relationship.LoginId@103c2db[id=3Dleadingedge],authentica= tionType=3DNATIVE,lockedOut=3Dfalse]] | at org.hibernate.exception.SQLStateConverter.handledNonSpecific= Exception(SQLStateConverter.java:91) | at org.hibernate.exception.SQLStateConverter.convert(SQLStateCo= nverter.java:79) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExce= ptionHelper.java:43) | at org.hibernate.loader.Loader.loadEntity(Loader.java:1796) | at org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra= ctEntityLoader.java:93) | at org.hibernate.loader.entity.EntityLoader.loadByUniqueKey(Ent= ityLoader.java:85) | at org.hibernate.persister.entity.AbstractEntityPersister.loadB= yUniqueKey(AbstractEntityPersister.java:1521) | at org.hibernate.type.EntityType.loadByUniqueKey(EntityType.jav= a:365) | at org.hibernate.type.EntityType.resolve(EntityType.java:306) | at org.hibernate.type.EntityType.replace(EntityType.java:207) | at org.hibernate.type.TypeFactory.replace(TypeFactory.java:431) | at org.hibernate.event.def.DefaultMergeEventListener.copyValues= (DefaultMergeEventListener.java:279) | at org.hibernate.event.def.DefaultMergeEventListener.entityIsDe= tached(DefaultMergeEventListener.java:245) | at org.hibernate.event.def.DefaultMergeEventListener.onMerge(De= faultMergeEventListener.java:102) | at org.hibernate.event.def.DefaultMergeEventListener.onMerge(De= faultMergeEventListener.java:53) | at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:63= 6) | at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:622) | at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEn= tityManagerImpl.java:140) | at org.jboss.ejb3.entity.InjectedEntityManager.merge(InjectedEn= tityManager.java:102) | at com.tasconline.util.service.bean.NoteServiceBean.addNoteAsso= ciation(NoteServiceBean.java:299) | at com.tasconline.util.service.bean.NoteServiceBean.addNote(Not= eServiceBean.java:176) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce= ssorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe= thodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:109) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOp= erationsInterceptor.java:32) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66= ) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterce= ptor.java:134) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropa= gationInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke= (StatelessInstanceInterceptor.java:39) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor= .invoke(RoleBasedAuthorizationInterceptor.java:151) | at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.in= voke(RoleBasedAuthorizationInterceptor.java:85) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(= AuthenticationInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagati= onInterceptor.java:32) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(A= synchronousInterceptor.java:91) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(St= atelessContainer.java:204) | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107) | at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInt= erceptor.java:37) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodIn= vocation.java:98) | at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(Statele= ssRemoteProxy.java:88) | at $Proxy222.addNote(Unknown Source) | at com.tasconline.note.web.ui.event.action.AddNoteAjaxAction.pe= rformAction(AddNoteAjaxAction.java:63) | at com.tasconline.web.ui.ajax.AjaxPhaseListener.handleRequest(A= jaxPhaseListener.java:96) | at com.tasconline.web.ui.ajax.AjaxPhaseListener.afterPhase(Ajax= PhaseListener.java:77) | at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListen= ersAfter(LifecycleImpl.java:536) | at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(Lifec= ycleImpl.java:164) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(Lifecycle= Impl.java:66) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:10= 6) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFi= lter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(App= licationFilterChain.java:173) | at com.tasconline.security.web.ui.filter.SecurityFilter.doFilte= r(SecurityFilter.java:102) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFi= lter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(App= licationFilterChain.java:173) | at com.tasconline.web.ui.filter.InitializeFilter.doFilter(Initi= alizeFilter.java:67) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFi= lter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(App= licationFilterChain.java:173) | at org.apache.myfaces.component.html.util.ExtensionsFilter.doFi= lter(ExtensionsFilter.java:122) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFi= lter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(App= licationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(Repl= yHeaderFilter.java:81) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFi= lter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(App= licationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(Standar= dWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(Standar= dContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(Cu= stomPrincipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invok= e(SecurityAssociationValve.java:159) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccCo= ntextValve.java:59) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHo= stValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo= rtValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(Standard= EngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd= apter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Proce= ssor.java:856) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand= ler.processConnection(Http11Protocol.java:744) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Poo= lTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(Maste= rSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.sql.SQLException: Statement parameter 1 not set. | at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerP= reparedStatement.java:992) | at com.mysql.jdbc.ServerPreparedStatement.executeInternal(Serve= rPreparedStatement.java:670) | at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatem= ent.java:1024) | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.exe= cuteQuery(WrappedPreparedStatement.java:211) | at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatc= her.java:137) | at org.hibernate.loader.Loader.getResultSet(Loader.java:1676) | at org.hibernate.loader.Loader.doQuery(Loader.java:662) | at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle= ctions(Loader.java:223) | at org.hibernate.loader.Loader.loadEntity(Loader.java:1782) | ... 81 more |=20 |=20 Looking into the server.log in jboss, I came across the following problem: | 2006-02-01 15:39:40,540 DEBUG [org.hibernate.SQL] select provider0_.int= ernalKey as internal1_13_10_, provider0_.version as version13_10_, provider= 0_.created as created13_10_, provider0_.createdBy as createdBy13_10_, provi= der0_.lastUpdated as lastUpda5_13_10_, provider0_.lastUpdatedBy as lastUpda= 6_13_10_, provider0_.fk_tasc_relationship as fk11_13_10_, provider0_.taxId = as taxId13_10_, provider0_.taxFilingStatus as taxFilin8_13_10_, provider0_.= primaryContact_fk_tasc_contact as primary12_13_10_, provider0_.organization= Name as organiza9_13_10_, provider0_.circleStatus as circleS10_13_10_, cont= acts1_.fk_tasc_contact as fk1_12_, contact2_.internalKey as fk2_12_, contac= t2_.internalKey as internal1_25_0_, contact2_.version as version25_0_, cont= act2_.created as created25_0_, contact2_.createdBy as createdBy25_0_, conta= ct2_.lastUpdated as lastUpda5_25_0_, contact2_.lastUpdatedBy as lastUpda6_2= 5_0_, contact2_.address1 as address7_25_0_, contact2_.address2 as address8_= 25_0_, contact2_.city as city25_0_, contact2_.state as state25_0_, contact2= _.deliveryArea as deliver11_25_0_, contact2_.plusFour as plusFour25_0_, con= tact2_.lastName as lastName25_0_, contact2_.firstName as firstName25_0_, co= ntact2_.middleName as middleName25_0_, contact2_.emailAddress as emailAd16_= 25_0_, contact2_.fk_tasc_relationship as fk34_25_0_, contact2_.contactId as= contactId25_0_, contact2_.homeNumberNumber as homeNum18_25_0_, contact2_.h= omeNumberExtension as homeNum19_25_0_, contact2_.homeNumberAreaCode as home= Num20_25_0_, contact2_.homeNumberTrunk as homeNum21_25_0_, contact2_.busine= ssNumberNumber as busines22_25_0_, contact2_.businessNumberExtension as bus= ines23_25_0_, contact2_.businessNumberAreaCode as busines24_25_0_, contact2= _.businessNumberTrunk as busines25_25_0_, contact2_.faxNumberNumber as faxN= umb26_25_0_, contact2_.faxNumberExtension as faxNumb27_25_0_, contact2_.fax= NumberAreaCode as faxNumb28_25_0_, contact2_.faxNumberTrunk as faxNumb29_25= _0_, contact2_.mobileNumberNumber as mobileN30_25_0_, contact2_.mobileNumbe= rExtension as mobileN31_25_0_, contact2_.mobileNumberAreaCode as mobileN32_= 25_0_, contact2_.mobileNumberTrunk as mobileN33_25_0_, relationsh3_.interna= lKey as internal1_16_1_, relationsh3_.version as version16_1_, relationsh3_= .created as created16_1_, relationsh3_.createdBy as createdBy16_1_, relatio= nsh3_.lastUpdated as lastUpda5_16_1_, relationsh3_.lastUpdatedBy as lastUpd= a6_16_1_, relationsh3_.relationshipId as relation7_16_1_, relationsh3_.logi= nId as loginId16_1_, relationsh3_.pin as pin16_1_, relationsh3_.authenticat= ionType as authent10_16_1_, relationsh3_.lockedOut as lockedOut16_1_, relat= ionsh4_.internalKey as internal1_16_2_, relationsh4_.version as version16_2= _, relationsh4_.created as created16_2_, relationsh4_.createdBy as createdB= y16_2_, relationsh4_.lastUpdated as lastUpda5_16_2_, relationsh4_.lastUpdat= edBy as lastUpda6_16_2_, relationsh4_.relationshipId as relation7_16_2_, re= lationsh4_.loginId as loginId16_2_, relationsh4_.pin as pin16_2_, relations= h4_.authenticationType as authent10_16_2_, relationsh4_.lockedOut as locked= Out16_2_, client5_.internalKey as internal1_4_3_, client5_.version as versi= on4_3_, client5_.created as created4_3_, client5_.createdBy as createdBy4_3= _, client5_.lastUpdated as lastUpda5_4_3_, client5_.lastUpdatedBy as lastUp= da6_4_3_, client5_.fk_tasc_relationship as fk10_4_3_, client5_.taxId as tax= Id4_3_, client5_.taxFilingStatus as taxFilin8_4_3_, client5_.clientName as = clientName4_3_, client5_.primaryContact_fk_tasc_contact as primary11_4_3_, = tascforce6_.internalKey as internal1_24_4_, tascforce6_.version as version2= 4_4_, tascforce6_.created as created24_4_, tascforce6_.createdBy as created= By24_4_, tascforce6_.lastUpdated as lastUpda5_24_4_, tascforce6_.lastUpdate= dBy as lastUpda6_24_4_, tascforce6_.fk_tasc_relationship as fk7_24_4_, tasc= force6_.fk_tasc_contact as fk8_24_4_, participan7_.internalKey as internal1= _12_5_, participan7_.version as version12_5_, participan7_.created as creat= ed12_5_, participan7_.createdBy as createdBy12_5_, participan7_.lastUpdated= as lastUpda5_12_5_, participan7_.lastUpdatedBy as lastUpda6_12_5_, partici= pan7_.fk_tasc_relationship as fk8_12_5_, participan7_.ssn as ssn12_5_, part= icipan7_.fk_tasc_contact as fk9_12_5_, notes8_.fk_tasc_note as fk1_13_, not= e9_.internalKey as fk2_13_, note9_.internalKey as internal1_10_6_, note9_.v= ersion as version10_6_, note9_.created as created10_6_, note9_.createdBy as= createdBy10_6_, note9_.lastUpdated as lastUpda5_10_6_, note9_.lastUpdatedB= y as lastUpda6_10_6_, note9_.contents as contents10_6_, note9_.noteId as no= teId10_6_, assignedro10_.fk_tasc_role as fk1_14_, role11_.internalKey as fk= 2_14_, role11_.internalKey as internal1_19_7_, role11_.version as version19= _7_, role11_.created as created19_7_, role11_.createdBy as createdBy19_7_, = role11_.lastUpdated as lastUpda5_19_7_, role11_.lastUpdatedBy as lastUpda6_= 19_7_, role11_.name as name19_7_, contact12_.internalKey as internal1_25_8_= , contact12_.version as version25_8_, contact12_.created as created25_8_, c= ontact12_.createdBy as createdBy25_8_, contact12_.lastUpdated as lastUpda5_= 25_8_, contact12_.lastUpdatedBy as lastUpda6_25_8_, contact12_.address1 as = address7_25_8_, contact12_.address2 as address8_25_8_, contact12_.city as c= ity25_8_, contact12_.state as state25_8_, contact12_.deliveryArea as delive= r11_25_8_, contact12_.plusFour as plusFour25_8_, contact12_.lastName as las= tName25_8_, contact12_.firstName as firstName25_8_, contact12_.middleName a= s middleName25_8_, contact12_.emailAddress as emailAd16_25_8_, contact12_.f= k_tasc_relationship as fk34_25_8_, contact12_.contactId as contactId25_8_, = contact12_.homeNumberNumber as homeNum18_25_8_, contact12_.homeNumberExtens= ion as homeNum19_25_8_, contact12_.homeNumberAreaCode as homeNum20_25_8_, c= ontact12_.homeNumberTrunk as homeNum21_25_8_, contact12_.businessNumberNumb= er as busines22_25_8_, contact12_.businessNumberExtension as busines23_25_8= _, contact12_.businessNumberAreaCode as busines24_25_8_, contact12_.busines= sNumberTrunk as busines25_25_8_, contact12_.faxNumberNumber as faxNumb26_25= _8_, contact12_.faxNumberExtension as faxNumb27_25_8_, contact12_.faxNumber= AreaCode as faxNumb28_25_8_, contact12_.faxNumberTrunk as faxNumb29_25_8_, = contact12_.mobileNumberNumber as mobileN30_25_8_, contact12_.mobileNumberEx= tension as mobileN31_25_8_, contact12_.mobileNumberAreaCode as mobileN32_25= _8_, contact12_.mobileNumberTrunk as mobileN33_25_8_, billingcon13_.fk_tasc= _contact as fk1_15_, contact14_.internalKey as fk2_15_, contact14_.internal= Key as internal1_25_9_, contact14_.version as version25_9_, contact14_.crea= ted as created25_9_, contact14_.createdBy as createdBy25_9_, contact14_.las= tUpdated as lastUpda5_25_9_, contact14_.lastUpdatedBy as lastUpda6_25_9_, c= ontact14_.address1 as address7_25_9_, contact14_.address2 as address8_25_9_= , contact14_.city as city25_9_, contact14_.state as state25_9_, contact14_.= deliveryArea as deliver11_25_9_, contact14_.plusFour as plusFour25_9_, cont= act14_.lastName as lastName25_9_, contact14_.firstName as firstName25_9_, c= ontact14_.middleName as middleName25_9_, contact14_.emailAddress as emailAd= 16_25_9_, contact14_.fk_tasc_relationship as fk34_25_9_, contact14_.contact= Id as contactId25_9_, contact14_.homeNumberNumber as homeNum18_25_9_, conta= ct14_.homeNumberExtension as homeNum19_25_9_, contact14_.homeNumberAreaCode= as homeNum20_25_9_, contact14_.homeNumberTrunk as homeNum21_25_9_, contact= 14_.businessNumberNumber as busines22_25_9_, contact14_.businessNumberExten= sion as busines23_25_9_, contact14_.businessNumberAreaCode as busines24_25_= 9_, contact14_.businessNumberTrunk as busines25_25_9_, contact14_.faxNumber= Number as faxNumb26_25_9_, contact14_.faxNumberExtension as faxNumb27_25_9_= , contact14_.faxNumberAreaCode as faxNumb28_25_9_, contact14_.faxNumberTrun= k as faxNumb29_25_9_, contact14_.mobileNumberNumber as mobileN30_25_9_, con= tact14_.mobileNumberExtension as mobileN31_25_9_, contact14_.mobileNumberAr= eaCode as mobileN32_25_9_, contact14_.mobileNumberTrunk as mobileN33_25_9_ = from tasc_provider provider0_ left outer join tasc_provider_contact contact= s1_ on provider0_.internalKey=3Dcontacts1_.fk_tasc_contact left outer join = tasc_contact contact2_ on contacts1_.fk_tasc_provider=3Dcontact2_.internalK= ey left outer join tasc_relationship relationsh3_ on contact2_.fk_tasc_rela= tionship=3Drelationsh3_.internalKey left outer join tasc_relationship relat= ionsh4_ on provider0_.fk_tasc_relationship=3Drelationsh4_.internalKey left = outer join tasc_client client5_ on relationsh4_.internalKey=3Dclient5_.fk_t= asc_relationship left outer join tasc_tascforce tascforce6_ on relationsh4_= .internalKey=3Dtascforce6_.fk_tasc_relationship left outer join tasc_partic= ipant participan7_ on relationsh4_.internalKey=3Dparticipan7_.fk_tasc_relat= ionship left outer join tasc_relationship_note notes8_ on relationsh4_.inte= rnalKey=3Dnotes8_.fk_tasc_note left outer join tasc_note note9_ on notes8_.= fk_tasc_relationship=3Dnote9_.internalKey left outer join tasc_relationship= _role assignedro10_ on relationsh4_.internalKey=3Dassignedro10_.fk_tasc_rol= e left outer join tasc_role role11_ on assignedro10_.fk_tasc_relationship= =3Drole11_.internalKey left outer join tasc_contact contact12_ on provider0= _.primaryContact_fk_tasc_contact=3Dcontact12_.internalKey left outer join t= asc_provider_billing_contact billingcon13_ on provider0_.internalKey=3Dbill= ingcon13_.fk_tasc_contact left outer join tasc_contact contact14_ on billin= gcon13_.fk_tasc_provider=3Dcontact14_.internalKey where provider0_.fk_tasc_= relationship=3D? | 2006-02-01 15:39:40,540 DEBUG [org.hibernate.jdbc.AbstractBatcher] prep= aring statement | 2006-02-01 15:39:40,545 DEBUG [org.hibernate.type.LongType] binding 'co= m.tasconline.relationship.Relationship@4e80d3[internalKey=3D42,created=3D20= 06-01-30 08:23:10.0,createdBy=3Dcom.tasconline.relationship.RelationshipId@= adab12[id=3D0000000-0000001],lastUpdated=3D2006-01-30 08:23:10.0,lastUpdate= dBy=3Dcom.tasconline.relationship.RelationshipId@e90879[id=3D0000000-000000= 1],version=3D0,relationshipId=3Dcom.tasconline.relationship.RelationshipId@= 1059fd6[id=3D4820000-0004127],loginId=3Dcom.tasconline.relationship.LoginId= @2f3d17[id=3Ddouglasinsurance],authenticationType=3DNATIVE,lockedOut=3Dfals= e]' to parameter: 1 | 2006-02-01 15:39:40,545 INFO [org.hibernate.type.LongType] could not b= ind value 'com.tasconline.relationship.Relationship@4e80d3[internalKey=3D42= ,created=3D2006-01-30 08:23:10.0,createdBy=3Dcom.tasconline.relationship.Re= lationshipId@adab12[id=3D0000000-0000001],lastUpdated=3D2006-01-30 08:23:10= .0,lastUpdatedBy=3Dcom.tasconline.relationship.RelationshipId@e90879[id=3D0= 000000-0000001],version=3D0,relationshipId=3Dcom.tasconline.relationship.Re= lationshipId@1059fd6[id=3D4820000-0004127],loginId=3Dcom.tasconline.relatio= nship.LoginId@2f3d17[id=3Ddouglasinsurance],authenticationType=3DNATIVE,loc= kedOut=3Dfalse]' to parameter: 1 |=20 |=20 It looks like the whole Relationship entity is being set as the statement p= arameter instead of it's primary key. Even more stranglely, other bits of = code where I call entityManager.merge(relationship) do work correctly. Any= ideas why this is occuring? View the original post : http://www.jboss.com/index.html?module=3Dbb&op=3Dv= iewtopic&p=3D3921065#3921065 Reply to the post : http://www.jboss.com/index.html?module=3Dbb&op=3Dpostin= g&mode=3Dreply&p=3D3921065 |