hi all.
i'm using jboss 3.2.3... i'm having problem relating to cascase delete.
i have two tables in which pk of one table is fk on other as well as the
element of composite key... and i'm using mysql as a database in which
cascade delete is set... but when i delete row from parent ejb it
does not delete from the child ejb... but it is working fine when i checks
from the mysql control center... i had seen everything in the deployment
descriptor ...everything seems to be fine but then also it is giving error ..
ejb-jar entries are:-
|
| Permission and SwitchPermission
|
| Each Permission has many
SwitchPermission
| One
|
| PermissionEJB
|
|
| switchPermission
| java.util.Collection
|
|
|
| SwitchPermission to
Permission
| Many
|
|
| SwitchPermissionEJB
|
|
| permission
|
|
|
|
and jbosscmp-jdbc entries are:-
|
| Permission and SwitchPermission
|
|
| Each Permission has many
SwitchPermission
|
|
|
| permissionID
| PermissionID
|
|
|
|
| SwitchPermission to Permission
|
|
|
|
|
|
and the trace of the error which i'm getting is:-
| Start method=remove
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Current transaction in MI is TransactionImpl:XidImpl [FormatId=257,
GlobalId=le52//117, BranchQual=]
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TX_REQUIRED for remove
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Thread came in with tx TransactionImpl:XidImpl [FormatId=257,
GlobalId=le52//117, BranchQual=]
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.EntityLockInterceptor]
Begin invoke, key=130
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] entryPromotion,
entry=key: 130, object: 1cfd020, entry: 6906a1
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.EntityInstanceInterceptor] Begin invoke, key=130
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.EntitySynchronizationInterceptor] invoke called for ctx
[EMAIL PROTECTED], tx=TransactionImpl:XidImpl [FormatId=257,
GlobalId=le52//117, BranchQual=]
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.EntitySynchronizationInterceptor] register, [EMAIL
PROTECTED], tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=le52//117,
BranchQual=]
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.PermissionEJB] Store
command NOT executed. Entity is not dirty or scheduled for *batch* cascade
delete: pk=130
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.PermissionEJB.UserEJB_permission]
Read ahead cahce load: cmrField=UserEJB_permission pk=130
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PermissionEJB] load data:
entity=PermissionEJB pk=130
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PermissionEJB] No preload data
found: entity=PermissionEJB pk=130
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor] invokerBInding is null in
ProxyFactoryFinder
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.LogInterceptor] Start
method=findByPrimaryKey
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Current transaction in MI is TransactionImpl:XidImpl [FormatId=257,
GlobalId=le52//117, BranchQual=]
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
TX_REQUIRED for findByPrimaryKey
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.TxInterceptorCMT]
Thread came in with tx TransactionImpl:XidImpl [FormatId=257,
GlobalId=le52//117, BranchQual=]
| 2004-12-07 17:42:21,656 TRACE [org.jboss.ejb.plugins.EntityInstancePool]
Get instance [EMAIL PROTECTED] com.le.nms.persistence.security.UserBean
| 2004-12-07 17:42:21,656 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.UserEJB#findByPrimaryKey]
Executing SQL: SELECT UserID FROM users WHERE UserID=?
| 2004-12-07 17:42:21,656 TRACE
[org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.UserEJB#findByPrimaryKey]
Set parameter: index=1, jdbcType=VARCHAR, value=raj
| 2004-12-07 17:42:21,687 TRACE [org.jboss.ejb.plugins.EntityInstancePool]
0/100 Free instance:[EMAIL PROTECTED] com.le.nms.persistence.security.UserBean
| 2004-12-07 17:42:21,687 TRACE [org.jboss.ejb.plugins.TxInterc