-->
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.  [ 2 posts ] 
Author Message
 Post subject: many-to-many not working properly with detached objects
PostPosted: Wed Mar 17, 2004 4:20 pm 
Pro
Pro

Joined: Mon Sep 08, 2003 4:30 pm
Posts: 203
Mappings:

Code:
   <class name="com.db.device.NetPortalSubnetwork" table="subnet" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" proxy="com.db.device.NetPortalSubnetwork">
      <id name="id" type="long" unsaved-value="0">
         <generator class="native">
         </generator>
      </id>
       
      <set name="mgmtInfo" table="ne_subnet" inverse="true" lazy="false" cascade="save-update">
         <key column="subnet_id"/>
         <many-to-many class="com.db.device.NEMgmtInfo" column="ne_subnet"/>
      </set>
    </class>



    <class name="com.diatem.db.device.NEMgmtInfo" table="nemgmtinfo" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false">
      <!--cache usage="read-write" /-->
      <id name="id" type="long" unsaved-value="0">
         <generator class="native">
         </generator>
      </id>
      <set name="subnets" table="ne_subnet" lazy="true">
         <key>
            <column name="ne_subnet" not-null="true"/>
         </key>
         <many-to-many class="com.diatem.db.device.NetPortalSubnetwork">
            <column name="subnet_id" not-null="true"/>
         </many-to-many>
      </set>
    </class> 


    <class name="com.db.device.NetPortalNetwork" table="network" mutable="true" polymorphism="implicit" dynamic-update="false" dynamic-insert="false" proxy="com.db.device.NetPortalNetwork">
      <id name="id" type="long" unsaved-value="0">
         <generator class="native">
         </generator>
      </id>

       <set name="subnet" cascade="all-delete-orphan" inverse="true" lazy="true">
         <key column="net_subnet_id"/>
         <one-to-many class="com.db.device.NetPortalSubnetwork"/>
       </set>

</class>



Java code:

Code:
         network = helper.getNetworkByPK(2);

         System.out.println(network.getSubnet());

         Set subnets = network.getSubnet();
         iter = subnets.iterator();
         subnet = (NetPortalSubnetwork)iter.next();

         subnet.getMgmtInfo().clear();
         network.getSubnet().remove(subnet);

         network = helper.updateNetwork(network);


Exception:

Code:
15:17:17,687 INFO  [STDOUT] Hibernate: update network set net_name=?, description=?, globalVlanId=?, moHistory=?, netCosMap=?, provider_network_id=? where id=?
15:17:17,687 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:17,687 INFO  [STDOUT] Hibernate: update subnet set name=?, description=?, net_subnet_id=?, netPortalControlled=?, layerNumber=?, topologyType=?, technologyType=?, mo
15:17:17,703 INFO  [STDOUT] Hibernate: update nemgmtinfo set description=?, mgmt_address_=?, mgmt_mask_=?, mgmt_ip_port=?, snmpVersion=?, cliAccessType=?, deviceRole=?, ca
l2SoftResourceUtil=?, l3SoftResourceUtil=?, specificSoftResources=?, useMgmtIPAddressAsSNMP=?, useShelfNo=?, useSlotNo=?, useSubSlotNo=?, usePortNo=?, useChannelNo=?, useI
15:17:17,703 INFO  [STDOUT] Hibernate: update snmp3params set securityLevel=?, auth_user_name=?, passwd_name=?, authAlg=? where id=?
15:17:17,718 INFO  [STDOUT] Hibernate: update ne_user_passwd set login_user=?, login_password=?, enable_user=?, enable_password=?, snmp_ro=?, snmp_wr=?, loginPrompt=?, ena
15:17:17,718 INFO  [STDOUT] Hibernate: update rate_proxy set layerRate=? where id=?
15:17:17,718 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:17,718 INFO  [STDOUT] Hibernate: update view_info set point=? where id=?
15:17:17,734 INFO  [STDOUT] Hibernate: update point set x=?, y=? where id=?
15:17:17,734 INFO  [STDOUT] Hibernate: update NonSNMPMonitoringCapabilities set sflow=?, netflow=? where id=?
15:17:17,734 INFO  [STDOUT] Hibernate: update subnet set name=?, description=?, net_subnet_id=?, netPortalControlled=?, layerNumber=?, topologyType=?, technologyType=?, mo
15:17:17,828 INFO  [STDOUT] Hibernate: update nemgmtinfo set description=?, mgmt_address_=?, mgmt_mask_=?, mgmt_ip_port=?, snmpVersion=?, cliAccessType=?, deviceRole=?, ca
l2SoftResourceUtil=?, l3SoftResourceUtil=?, specificSoftResources=?, useMgmtIPAddressAsSNMP=?, useShelfNo=?, useSlotNo=?, useSubSlotNo=?, usePortNo=?, useChannelNo=?, useI
15:17:17,843 INFO  [STDOUT] Hibernate: update snmp3params set securityLevel=?, auth_user_name=?, passwd_name=?, authAlg=? where id=?
15:17:17,843 INFO  [STDOUT] Hibernate: update ne_user_passwd set login_user=?, login_password=?, enable_user=?, enable_password=?, snmp_ro=?, snmp_wr=?, loginPrompt=?, ena
15:17:17,843 INFO  [STDOUT] Hibernate: update rate_proxy set layerRate=? where id=?
15:17:17,859 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:17,859 INFO  [STDOUT] Hibernate: update view_info set point=? where id=?
15:17:17,859 INFO  [STDOUT] Hibernate: update point set x=?, y=? where id=?
15:17:17,875 INFO  [STDOUT] Hibernate: update NonSNMPMonitoringCapabilities set sflow=?, netflow=? where id=?
15:17:17,875 INFO  [STDOUT] Hibernate: update nemgmtinfo set description=?, mgmt_address_=?, mgmt_mask_=?, mgmt_ip_port=?, snmpVersion=?, cliAccessType=?, deviceRole=?, ca
l2SoftResourceUtil=?, l3SoftResourceUtil=?, specificSoftResources=?, useMgmtIPAddressAsSNMP=?, useShelfNo=?, useSlotNo=?, useSubSlotNo=?, usePortNo=?, useChannelNo=?, useI
15:17:17,875 INFO  [STDOUT] Hibernate: update snmp3params set securityLevel=?, auth_user_name=?, passwd_name=?, authAlg=? where id=?
15:17:17,890 INFO  [STDOUT] Hibernate: update ne_user_passwd set login_user=?, login_password=?, enable_user=?, enable_password=?, snmp_ro=?, snmp_wr=?, loginPrompt=?, ena
15:17:17,890 INFO  [STDOUT] Hibernate: update rate_proxy set layerRate=? where id=?
15:17:17,890 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:17,890 INFO  [STDOUT] Hibernate: update view_info set point=? where id=?
15:17:17,906 INFO  [STDOUT] Hibernate: update point set x=?, y=? where id=?
15:17:17,906 INFO  [STDOUT] Hibernate: update NonSNMPMonitoringCapabilities set sflow=?, netflow=? where id=?
15:17:17,906 INFO  [STDOUT] Hibernate: update subnet set name=?, description=?, net_subnet_id=?, netPortalControlled=?, layerNumber=?, topologyType=?, technologyType=?, mo
15:17:17,921 INFO  [STDOUT] Hibernate: update nemgmtinfo set description=?, mgmt_address_=?, mgmt_mask_=?, mgmt_ip_port=?, snmpVersion=?, cliAccessType=?, deviceRole=?, ca
l2SoftResourceUtil=?, l3SoftResourceUtil=?, specificSoftResources=?, useMgmtIPAddressAsSNMP=?, useShelfNo=?, useSlotNo=?, useSubSlotNo=?, usePortNo=?, useChannelNo=?, useI
15:17:17,921 INFO  [STDOUT] Hibernate: update snmp3params set securityLevel=?, auth_user_name=?, passwd_name=?, authAlg=? where id=?
15:17:17,921 INFO  [STDOUT] Hibernate: update ne_user_passwd set login_user=?, login_password=?, enable_user=?, enable_password=?, snmp_ro=?, snmp_wr=?, loginPrompt=?, ena
15:17:17,937 INFO  [STDOUT] Hibernate: update rate_proxy set layerRate=? where id=?
15:17:17,937 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:17,937 INFO  [STDOUT] Hibernate: update view_info set point=? where id=?
15:17:17,953 INFO  [STDOUT] Hibernate: update point set x=?, y=? where id=?
15:17:17,953 INFO  [STDOUT] Hibernate: update NonSNMPMonitoringCapabilities set sflow=?, netflow=? where id=?
15:17:17,953 INFO  [STDOUT] Hibernate: update nemgmtinfo set description=?, mgmt_address_=?, mgmt_mask_=?, mgmt_ip_port=?, snmpVersion=?, cliAccessType=?, deviceRole=?, ca
l2SoftResourceUtil=?, l3SoftResourceUtil=?, specificSoftResources=?, useMgmtIPAddressAsSNMP=?, useShelfNo=?, useSlotNo=?, useSubSlotNo=?, usePortNo=?, useChannelNo=?, useI
15:17:17,968 INFO  [STDOUT] Hibernate: update snmp3params set securityLevel=?, auth_user_name=?, passwd_name=?, authAlg=? where id=?
15:17:17,968 INFO  [STDOUT] Hibernate: update ne_user_passwd set login_user=?, login_password=?, enable_user=?, enable_password=?, snmp_ro=?, snmp_wr=?, loginPrompt=?, ena
15:17:17,968 INFO  [STDOUT] Hibernate: update rate_proxy set layerRate=? where id=?
15:17:17,968 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:17,984 INFO  [STDOUT] Hibernate: update view_info set point=? where id=?
15:17:17,984 INFO  [STDOUT] Hibernate: update point set x=?, y=? where id=?
15:17:17,984 INFO  [STDOUT] Hibernate: update NonSNMPMonitoringCapabilities set sflow=?, netflow=? where id=?
15:17:17,984 INFO  [STDOUT] Hibernate: update subnet set name=?, description=?, net_subnet_id=?, netPortalControlled=?, layerNumber=?, topologyType=?, technologyType=?, mo
15:17:18,015 INFO  [STDOUT] Hibernate: update nemgmtinfo set description=?, mgmt_address_=?, mgmt_mask_=?, mgmt_ip_port=?, snmpVersion=?, cliAccessType=?, deviceRole=?, ca
l2SoftResourceUtil=?, l3SoftResourceUtil=?, specificSoftResources=?, useMgmtIPAddressAsSNMP=?, useShelfNo=?, useSlotNo=?, useSubSlotNo=?, usePortNo=?, useChannelNo=?, useI
15:17:18,031 INFO  [STDOUT] Hibernate: update snmp3params set securityLevel=?, auth_user_name=?, passwd_name=?, authAlg=? where id=?
15:17:18,031 INFO  [STDOUT] Hibernate: update ne_user_passwd set login_user=?, login_password=?, enable_user=?, enable_password=?, snmp_ro=?, snmp_wr=?, loginPrompt=?, ena
15:17:18,031 INFO  [STDOUT] Hibernate: update rate_proxy set layerRate=? where id=?
15:17:18,046 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:18,046 INFO  [STDOUT] Hibernate: update view_info set point=? where id=?
15:17:18,046 INFO  [STDOUT] Hibernate: update point set x=?, y=? where id=?
15:17:18,046 INFO  [STDOUT] Hibernate: update NonSNMPMonitoringCapabilities set sflow=?, netflow=? where id=?
15:17:18,062 INFO  [STDOUT] Hibernate: update nemgmtinfo set description=?, mgmt_address_=?, mgmt_mask_=?, mgmt_ip_port=?, snmpVersion=?, cliAccessType=?, deviceRole=?, ca
l2SoftResourceUtil=?, l3SoftResourceUtil=?, specificSoftResources=?, useMgmtIPAddressAsSNMP=?, useShelfNo=?, useSlotNo=?, useSubSlotNo=?, usePortNo=?, useChannelNo=?, useI
15:17:18,062 INFO  [STDOUT] Hibernate: update snmp3params set securityLevel=?, auth_user_name=?, passwd_name=?, authAlg=? where id=?
15:17:18,078 INFO  [STDOUT] Hibernate: update ne_user_passwd set login_user=?, login_password=?, enable_user=?, enable_password=?, snmp_ro=?, snmp_wr=?, loginPrompt=?, ena
15:17:18,078 INFO  [STDOUT] Hibernate: update rate_proxy set layerRate=? where id=?
15:17:18,078 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:18,078 INFO  [STDOUT] Hibernate: update view_info set point=? where id=?
15:17:18,093 INFO  [STDOUT] Hibernate: update point set x=?, y=? where id=?
15:17:18,093 INFO  [STDOUT] Hibernate: update NonSNMPMonitoringCapabilities set sflow=?, netflow=? where id=?
15:17:18,093 INFO  [STDOUT] Hibernate: update sites set site_ne_name=?, description=?, contactInfo=?, locationInfo=?, own_site_id=?, domain_site_id=?, net_site_id=?, moHis
15:17:18,109 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:18,109 INFO  [STDOUT] Hibernate: update contactinfo set name=?, salutation=?, phone_number=?, mobile_phone=?, pager_number=?, email=? where id=?
15:17:18,109 INFO  [STDOUT] Hibernate: update locationinfo set street=?, city=?, country=?, zipcode=? where id=?
15:17:18,109 INFO  [STDOUT] Hibernate: update sites set site_ne_name=?, description=?, contactInfo=?, locationInfo=?, own_site_id=?, domain_site_id=?, net_site_id=?, moHis
15:17:18,125 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:18,125 INFO  [STDOUT] Hibernate: update sites set site_ne_name=?, description=?, contactInfo=?, locationInfo=?, own_site_id=?, domain_site_id=?, net_site_id=?, moHis
15:17:18,125 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:18,140 INFO  [STDOUT] Hibernate: update sites set site_ne_name=?, description=?, contactInfo=?, locationInfo=?, own_site_id=?, domain_site_id=?, net_site_id=?, moHis
15:17:18,140 INFO  [STDOUT] Hibernate: update ne_name set shortname=?, longname=?, separator=?, operation=? where id=?
15:17:18,140 INFO  [STDOUT] Hibernate: update rate_proxy set rate_key=null, rate_index=null where rate_key=?
15:17:18,156 INFO  [STDOUT] Hibernate: update rate_proxy set rate_key=?, rate_index=? where id=?
15:17:18,171 INFO  [STDOUT] Hibernate: delete from subnet where id=?
15:17:18,171 WARN  [JDBCExceptionReporter] SQL Error: -532, SQLState: 23504
15:17:18,171 ERROR [JDBCExceptionReporter] [IBM][CLI Driver][DB2/SUN] SQL0532N  A parent row cannot be deleted because the relationship "DB2INST1.NE_SUBNET.FK1D8AA6E516449

15:17:18,187 ERROR [JDBCExceptionReporter] could not delete: [com.diatem.db.device.NetPortalSubnetwork#107]
COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/SUN] SQL0532N  A parent row cannot be deleted because the relationship "DB2INST1.NE_SUBNET.FK1D8AA6E51644953D" restric

        at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:270)
        at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:207)
        at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(SQLExceptionGenerator.java:458)
        at COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(DB2PreparedStatement.java:2110)
        at COM.ibm.db2.jdbc.app.DB2PreparedStatement.executeUpdate(DB2PreparedStatement.java:1642)
        at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:324)
        at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:22)
        at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:598)
        at net.sf.hibernate.impl.ScheduledDeletion.execute(ScheduledDeletion.java:29)
        at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2384)
        at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2342)
        at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2206)
        at com.diatem.dao.DeviceDAO.updateNetwork(DeviceDAO.java:259)
        at com.diatem.ejb.session.NetPortalNEBean.updateNetwork(NetPortalNEBean.java:795)
        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.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
        at org.jboss.ejb.Container.invoke(Container.java:700)
        at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:187)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
        at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:534)
15:17:18,328 ERROR [SessionImpl] Could not synchronize database state with session
net.sf.hibernate.JDBCException: could not delete: [com.diatem.db.device.NetPortalSubnetwork#107]
        at net.sf.hibernate.persister.EntityPersister.delete(EntityPersister.java:617)
        at net.sf.hibernate.impl.ScheduledDeletion.execute(ScheduledDeletion.java:29)
        at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2384)
        at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2342)
        at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2206)
        at com.diatem.dao.DeviceDAO.updateNetwork(DeviceDAO.java:259)
        at com.diatem.ejb.session.NetPortalNEBean.updateNetwork(NetPortalNEBean.java:795)
        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.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
        at org.jboss.ejb.Container.invoke(Container.java:700)
        at sun.reflect.GeneratedMethodAccessor329.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:72)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:45)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:70)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:187)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480)
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367)
        at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
        at java.lang.Thread.run(Thread.java:534)
Caused by: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/SUN] SQL0532N  A parent row cannot be deleted because the relationship "DB2INST1.NE_SUBNET.FK1D8AA6E5164495


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 18, 2004 11:03 am 
Pro
Pro

Joined: Mon Sep 08, 2003 4:30 pm
Posts: 203
Figured it out that if I changed the inverse to be true/false on the other side, everything works ok.

So it was a matter of re-reading the doco ...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.