-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Post DDL changes - Failed to lazily initialize a collection
PostPosted: Sat Dec 06, 2003 3:18 pm 
Beginner
Beginner

Joined: Tue Sep 09, 2003 5:20 pm
Posts: 43
I have made some minor adjustments to my MySQL 4.0.13 DDL that Hibernate uses. Added a few columns, renamed one column, dropped a couple. I made the corresponding changes in the domain classes that I generate the Hibernate mapping files from (I use XDoclet). I get the above exception now.

Its got to be a mismatch between my mapping document and my DDL, but I've looked and looked and do not see it.

Before asking others to find my typo or mistake, could someone at least point out the type of mistakes that might cause this problem?

Thanks in advance. I'm using Hibernate 2.0.1. I've included a portion of the stack trace below.

Thanks in advance - Richard

Code:
23:01:37,115 DEBUG EntityPersister:390 - Materializing entity: com.ltoj.persistence.base.PoAssocPolicy#189
23:01:37,115 DEBUG BatcherImpl:157 - about to open: 0 open PreparedStatements, 0 open ResultSets
23:01:37,115 DEBUG SessionFactoryImpl:547 - prepared statement get: select poorgani1_.id as id0_, poorgani1_.orgName as orgName0_, poorgani1_.organizationType as organiz14_0_, poorgani1_.contact as contact0_, poorgani1_.version as version0_, poorgani1_.parentOrg as parentOrg0_, poorgani1_.owner as owner0_, poorgani1_.status as status0_, poorgani1_.createdBy as createdBy0_, poorgani1_.createdFromIP as createdF8_0_, poorgani1_.createdOn as createdOn0_, poorgani1_.updatedBy as updatedBy0_, poorgani1_.updatedFromIP as updated11_0_, poorgani1_.updatedOn as updatedOn0_, poorgpol2_.id as id1_, poorgpol2_.version as version1_, poorgpol2_.measUnitOwnedByOrg as measUnit3_1_, poorgpol2_.measUnitAllowInstrUpdt as measUnit4_1_, poorgpol2_.measUnitViewSys as measUnit5_1_, poorgpol2_.measUnitUseParentPol as measUnit6_1_, poorgpol2_.measParmOwnedByOrg as measParm7_1_, poorgpol2_.measParmAllowInstrUpdt as measParm8_1_, poorgpol2_.measParmViewSys as measParm9_1_, poorgpol2_.measParmUseParentPol as measPar10_1_, poorgpol2_.subjOwnedByOrg as subjOwn11_1_, poorgpol2_.subjAllowInstrUpdt as subjAll12_1_, poorgpol2_.subjViewSys as subjVie13_1_, poorgpol2_.subjUseParentPol as subjUse14_1_, poorgpol2_.studentOwnedByOrg as student15_1_, poorgpol2_.studentAllowInstrUpdt as student16_1_, poorgpol2_.studentViewSys as student17_1_, poorgpol2_.studentUseParentPol as student18_1_, poorgpol2_.studentDisaggrOwnedByOrg as student19_1_, poorgpol2_.studentDisaggrAllowInstrUpdt as student20_1_, poorgpol2_.studentDisaggrViewSys as student21_1_, poorgpol2_.studentDisaggrUseParentPol as student22_1_, poorgpol2_.disaggrOwnedByOrg as disaggr23_1_, poorgpol2_.disaggrAllowInstrUpdt as disaggr24_1_, poorgpol2_.disaggrViewSys as disaggr25_1_, poorgpol2_.disaggrUseParentPol as disaggr26_1_, poorgpol2_.ideaOwnedByOrg as ideaOwn27_1_, poorgpol2_.ideaAllowInstrUpdt as ideaAll28_1_, poorgpol2_.ideaViewSys as ideaVie29_1_, poorgpol2_.ideaUseParentPol as ideaUse30_1_, poorgpol2_.langOwnedByOrg as langOwn31_1_, poorgpol2_.langAllowInstrUpdt as langAll32_1_, poorgpol2_.langViewSys as langVie33_1_, poorgpol2_.langUseParentPol as langUse34_1_, poorgpol2_.ethnOwnedByOrg as ethnOwn35_1_, poorgpol2_.ethnAllowInstrUpdt as ethnAll36_1_, poorgpol2_.ethnViewSys as ethnVie37_1_, poorgpol2_.ethnUseParentPol as ethnUse38_1_, poorgpol2_.owner as owner1_, poorgpol2_.status as status1_, poorgpol2_.createdBy as createdBy1_, poorgpol2_.createdFromIP as created42_1_, poorgpol2_.createdOn as createdOn1_, poorgpol2_.updatedBy as updatedBy1_, poorgpol2_.updatedFromIP as updated45_1_, poorgpol2_.updatedOn as updatedOn1_, poassocp3_.id as id2_, poassocp3_.version as version2_, poassocp3_.classNameTemplate as classNam3_2_, poassocp3_.classDescTemplate as classDes4_2_, poassocp3_.gradeLevel as gradeLevel2_, poassocp3_.measurementUnit as measurem6_2_, poassocp3_.subject as subject2_, poassocp3_.language as language2_, poassocp3_.ethnicity as ethnicity2_, poassocp3_.indDisabEducAct as indDisa10_2_, poassocp3_.beginDate as beginDate2_, poassocp3_.endDate as endDate2_, poassocp3_.owner as owner2_, poassocp3_.status as status2_, poassocp3_.createdBy as createdBy2_, poassocp3_.createdFromIP as created16_2_, poassocp3_.createdOn as createdOn2_, poassocp3_.updatedBy as updatedBy2_, poassocp3_.updatedFromIP as updated19_2_, poassocp3_.updatedOn as updatedOn2_, poassoci4_.id as id3_, poassoci4_.class as class3_, poassoci4_.version as version3_, poassoci4_.parentOrg as parentOrg3_, poassoci4_.owner as owner3_, poassoci4_.status as status3_, poassoci4_.createdBy as createdBy3_, poassoci4_.createdFromIP as createdF8_3_, poassoci4_.createdOn as createdOn3_, poassoci4_.updatedBy as updatedBy3_, poassoci4_.updatedFromIP as updated11_3_, poassoci4_.updatedOn as updatedOn3_, poassoci4_.orgName as orgName3_, poassoci4_.organizationType as organiz14_3_, poassoci4_.contact as contact3_, poassoci4_.salutation as salutation3_, poassoci4_.firstName as firstName3_, poassoci4_.middleInitial as middleI18_3_, poassoci4_.lastName as lastName3_, poassoci4_.suffix as suffix3_, poassoci4_.nickname as nickname3_, poassoci4_.gender as gender3_, poassoci4_.personId as personId3_, poassoci4_.gradeLevel as gradeLevel3_, poassoci4_.ethnicity as ethnicity3_, poassoci4_.limitedEnglish as limited26_3_, poassoci4_.primaryLanguage as primary27_3_, poassoci4_.title1 as title13_, poassoci4_.econDisadv as econDisadv3_, poassoci4_.indDisabEducAct as indDisa30_3_, poassoci4_.userid as userid3_, poassoci4_.password as password3_, poassoci4_.email as email3_, poassoci4_.defaultRole as default34_3_, poassocp0_.id as id4_, poassocp0_.version as version4_, poassocp0_.maxClassCtPerInstr as maxClass3_4_, poassocp0_.maxEnrollCtPerClass as maxEnrol4_4_, poassocp0_.owner as owner4_, poassocp0_.status as status4_, poassocp0_.createdBy as createdBy4_, poassocp0_.createdFromIP as createdF8_4_, poassocp0_.createdOn as createdOn4_, poassocp0_.updatedBy as updatedBy4_, poassocp0_.updatedFromIP as updated11_4_, poassocp0_.updatedOn as updatedOn4_ from PoAssocPolicy poassocp0_ left outer join PoAssociate poorgani1_ on poassocp0_.id=poorgani1_.id left outer join PoOrgPolicy poorgpol2_ on poorgani1_.id=poorgpol2_.id left outer join PoAssocPref poassocp3_ on poorgani1_.id=poassocp3_.id left outer join PoAssociate poassoci4_ on poassocp3_.id=poassoci4_.id where poassocp0_.id=?
23:01:37,125 DEBUG SessionFactoryImpl:557 - preparing statement
23:01:37,125 DEBUG LongType:44 - binding '189' to parameter: 1
23:01:37,135 DEBUG Loader:148 - processing result set
23:01:37,135 DEBUG Loader:182 - done processing result set (0 rows)
23:01:37,145 DEBUG BatcherImpl:164 - done closing: 0 open PreparedStatements, 0 open ResultSets
23:01:37,145 DEBUG SessionFactoryImpl:575 - closing statement
23:01:37,145 DEBUG Loader:195 - total objects hydrated: 0
23:01:37,155 DEBUG SessionImpl:1764 - loading [com.ltoj.persistence.base.PoAssociate#7]
23:01:37,155 DEBUG SessionImpl:1855 - attempting to resolve [com.ltoj.persistence.base.PoAssociate#7]
23:01:37,165 DEBUG SessionImpl:1870 - resolved object in session cache [com.ltoj.persistence.base.PoAssociate#7]
23:01:37,165 DEBUG SessionImpl:1764 - loading [com.ltoj.persistence.base.PoStatus#1]
23:01:37,165 DEBUG SessionImpl:1855 - attempting to resolve [com.ltoj.persistence.base.PoStatus#1]
23:01:37,175 DEBUG SessionImpl:1870 - resolved object in session cache [com.ltoj.persistence.base.PoStatus#1]
23:01:37,175 DEBUG SessionImpl:1987 - done materializing entity [com.ltoj.persistence.base.PoUser#189]
23:01:37,175 DEBUG SessionImpl:1764 - loading [com.ltoj.persistence.base.PoStatus#1]
23:01:37,185 DEBUG SessionImpl:1855 - attempting to resolve [com.ltoj.persistence.base.PoStatus#1]
23:01:37,185 DEBUG SessionImpl:1870 - resolved object in session cache [com.ltoj.persistence.base.PoStatus#1]
23:01:37,195 ERROR PersistentCollection:160 - Failed to lazily initialize a collection
java.lang.NullPointerException
   at com.ltoj.persistence.base.PoMeasurementParmsMetaClass5.setPropertyValues(<generated>)
   at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:158)
   at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:1973)
   at net.sf.hibernate.loader.Loader.doFind(Loader.java:196)
   at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:588)
   at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:102)
   at net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:2844)
   at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:151)
   at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:64)
   at net.sf.hibernate.collection.Set.size(Set.java:105)
   at com.ltoj.webapp.action.SubjectAction.filterSet(SubjectAction.java:811)
   at com.ltoj.webapp.action.SubjectAction.getExistingLineItems(SubjectAction.java:744)
   at com.ltoj.webapp.action.SubjectAction.refresh(SubjectAction.java:685)
   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:324)
   at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
   at com.ltoj.webapp.action.BaseAction.execute(BaseAction.java:158)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:94)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:312)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
   at java.lang.Thread.run(Thread.java:536)
rethrown as
net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB setter of com.ltoj.persistence.base.PoMeasurementParms.?
   at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:163)
   at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:1973)
   at net.sf.hibernate.loader.Loader.doFind(Loader.java:196)
   at net.sf.hibernate.loader.Loader.loadCollection(Loader.java:588)
   at net.sf.hibernate.loader.OneToManyLoader.initialize(OneToManyLoader.java:102)
   at net.sf.hibernate.impl.SessionImpl.initialize(SessionImpl.java:2844)
   at net.sf.hibernate.collection.PersistentCollection.initialize(PersistentCollection.java:151)
   at net.sf.hibernate.collection.PersistentCollection.read(PersistentCollection.java:64)
   at net.sf.hibernate.collection.Set.size(Set.java:105)
   at com.ltoj.webapp.action.SubjectAction.filterSet(SubjectAction.java:811)
   at com.ltoj.webapp.action.SubjectAction.getExistingLineItems(SubjectAction.java:744)
   at com.ltoj.webapp.action.SubjectAction.refresh(SubjectAction.java:685)
   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:324)
   at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
   at com.ltoj.webapp.action.BaseAction.execute(BaseAction.java:158)
   at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
   at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
   at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at com.atlassian.util.profiling.filters.ProfilingFilter.doFilter(ProfilingFilter.java:132)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at com.ltoj.webapp.filter.BreadCrumbFilter.doFilter(BreadCrumbFilter.java:94)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at com.ltoj.webapp.filter.ActionFilter.doFilter(ActionFilter.java:312)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:553)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
   at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
   at com.ltoj.persistence.base.PoMeasurementParmsMetaClass5.setPropertyValues(<generated>)
   at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:158)
   ... 65 more
23:01:37,246  WARN RequestProcessor:538 - Unhandled Exception thrown: class net.sf.hibernate.LazyInitializationException


Top
 Profile  
 
 Post subject: Post subject: Post DDL changes - Failed to lazily initialize
PostPosted: Mon Dec 08, 2003 11:00 pm 
Beginner
Beginner

Joined: Tue Sep 09, 2003 5:20 pm
Posts: 43
OK, let me ask a slightly different question. From the documentation, my understanding is that the one-to-one may be optional. In my situation the child represents optional information about the parent. If the child exists, then I want cascade="delete".

Is that supported?

Thanks - Richard


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 09, 2003 11:19 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Yes, If you delete a parent, the child (one-to-one cascade=delete) will be deleted.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.