Anyone?
my debug is as follow for when an eviction starts. As you can see, Client gets evicted but none of it's associations cascade the evict, even though I am telling it to in the mapping file...
Code:
=========== Start Evicting Client =============
[DEBUG][org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:290)]- allowing method [beginTransaction] in non-transacted context
[DEBUG][org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:300)]- allowing proxied method [beginTransaction] to proceed to real session
[DEBUG][org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:54)]- begin
[DEBUG][org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:415)]- opening JDBC connection
[DEBUG][org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:59)]- current autocommit status: false
[DEBUG][org.hibernate.jdbc.JDBCContext.afterTransactionBegin(JDBCContext.java:194)]- after transaction begin
[INFO][ClientDAOHibernate.evictIfStaleByDate(ClientDAOHibernate.java:52)]- Trying to evict Client with id: 1
[DEBUG][org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:300)]- allowing proxied method [connection] to proceed to real session
[INFO][ClientDAOHibernate.evictIfStaleByDate(ClientDAOHibernate.java:58)]- Trying to evict Client with id: 1 - SQL Executed: select updated_date from cas_client where client_id = 1
[INFO][ClientDAOHibernate.evictIfStaleByDate(ClientDAOHibernate.java:61)]- Client with id: 1 exists in DB
[INFO][ClientDAOHibernate.evictIfStaleByDate(ClientDAOHibernate.java:64)]- evicting Client with id: 1. Clients's Date: Sat Aug 04 13:25:31 EST 21. Database Date: 2003-03-11
[DEBUG][org.hibernate.impl.SessionFactoryImpl.evict(SessionFactoryImpl.java:794)]- evicting second-level cache: [ request.Client#1]
[DEBUG][org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:103)]- commit
[DEBUG][org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:332)]- automatically flushing session
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:58)]- flushing session
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:111)]- processing flush-time cascades
[DEBUG][org.hibernate.engine.Cascade.cascade(Cascade.java:237)]- processing cascade ACTION_SAVE_UPDATE for: Client
[DEBUG][org.hibernate.engine.Cascade.cascade(Cascade.java:259)]- done processing cascade ACTION_SAVE_UPDATE for: Client
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.prepareCollectionFlushes(AbstractFlushingEventListener.java:153)]- dirty checking collections
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:170)]- Flushing entities and processing referenced collections
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.orgLevel#1], was: [Client.orgLevel#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.smpAtt#1], was: [Client.smpAtt#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.sampleRawOrder#1], was: [Client.sampleRawOrder#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.samplePassthroughRawOrder#1], was: [Client.samplePassthroughRawOrder#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.sampleAttributeOrder#1], was: [.Client.sampleAttributeOrder#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.surveyJobs#1], was: [surveyJobs#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.surveyJobOrder#1], was: [Client.surveyJobOrder#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.surveyStudy#1], was: [Client.surveyStudy#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.clientModule#1], was: [Client.clientModule#1] (initialized)
[DEBUG][org.hibernate.engine.Collections.processReachableCollection(Collections.java:176)]- Collection found: [Client.quenumberMaster#1], was: [Client.quenumberMaster#1] (initialized)
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.flushCollections(AbstractFlushingEventListener.java:209)]- Processing unreferenced collections
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.flushCollections(AbstractFlushingEventListener.java:223)]- Scheduling collection removes/(re)creates/updates
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:85)]- Flushed: 0 insertions, 0 updates, 0 deletions to 10 objects
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:91)]- Flushed: 0 (re)creations, 0 updates, 0 removals to 10 collections
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:83)]- listing entities:
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- Client{samplePassthroughRawOrder=[], clientServiceEmail=email.com,email.com, surveyJobs=[SurveyJobs#0], schemeId=1, clientLogo=null, masterJob=null, enforceOu=true, schemaOwner=INTERNALMKTING_SAMPLE, portalId=null, ouId=null, securityTable=INTERNAL_SECURITY_VIEW, clientModule=[ CasModuleClient#component[moduleId,clientId]{moduleId=0, clientId=1}, CasModuleClient#component[moduleId,clientId]{moduleId=1, clientId=1}, CasModuleClient#component[moduleId,clientId]{moduleId=2, clientId=1}, CasModuleClient#component[moduleId,clientId]{moduleId=3, clientId=1}, CasModuleClient#component[moduleId,clientId]{moduleId=4, clientId=1}, CasModuleClient#component[moduleId,clientId]{moduleId=6, clientId=1}], masterTable=INTERNAL_MASTER_SAMPLE, defaultView=null, nameTable=null, sampleFilterScope=1, systemUser= User#1, enforceOuDef=0, disabled=false, functionCategoryRoot=null, clientName=Information, surveyJobOrder=[0], sampleRawOrder=[], orgLevel=[], sampleAttributeOrder=[], sampleOu=true, masterSequence=INTERNAL_SEQ, clientId=1, smpAtt=[], quenumberMaster=[], surveyStudy=[ CasStudy#61148]}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- SurveyJobs{active=true, uniqueCodes=false, jobNameShort= Default Job, study= CasStudy#61148, numberOfAutoReminders=0, transactionDisplayName=null, mandatoryRestPeriod=null, startDate=2000-01-01 00:00:00, functionFilter=null, ipFilter=null, disabled=false, maxEmails=null, competitorQuestion=null, job=0, expireSurvey=null, competitorFunction=null, inviteScreenOptions=null, currentJob= TblCurrentJob#0, loyaltyFunction=null, reminderTimeSpan=null, endDate=2000-01-01 00:00:00, jobName= Default Job}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- CasModuleClient{path=/cas/stats, module= CasModule#2, id=component[moduleId,clientId]{moduleId=2, clientId=1}, customPath=null}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- CasModuleClient{path=/cas/admin, module= CasModule#6, id=component[moduleId,clientId]{moduleId=6, clientId=1}, customPath=null}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- CasModuleClient{path=/cas/project, module= CasModule#0, id=component[moduleId,clientId]{moduleId=0, clientId=1}, customPath=null}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- CasModuleClient{path=/cas/reports, module= CasModule#3, id=component[moduleId,clientId]{moduleId=3, clientId=1}, customPath=null}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- CasModuleClient{path=/cas/followup, module= CasModule#4, id=component[moduleId,clientId]{moduleId=4, clientId=1}, customPath=null}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- CasStudy{studyId=61148, studyName=INTERNAL MARKETING}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- CasModuleClient{path=/cas/cmt, module= CasModule#1, id=component[moduleId,clientId]{moduleId=1, clientId=1}, customPath=null}
[DEBUG][org.hibernate.pretty.Printer.toString(Printer.java:90)]- TblCurrentJob{job=0, transactional=false, archiveType=Ready}
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:289)]- executing flush
[DEBUG][org.hibernate.jdbc.ConnectionManager.flushBeginning(ConnectionManager.java:463)]- registering flush begin
[DEBUG][org.hibernate.jdbc.ConnectionManager.flushEnding(ConnectionManager.java:472)]- registering flush end
[DEBUG][org.hibernate.event.def.AbstractFlushingEventListener.postFlush(AbstractFlushingEventListener.java:320)]- post flush
[DEBUG][org.hibernate.jdbc.JDBCContext.beforeTransactionCompletion(JDBCContext.java:185)]- before transaction completion
[DEBUG][org.hibernate.impl.SessionImpl.beforeTransactionCompletion(SessionImpl.java:388)]- before transaction completion
[DEBUG][org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:116)]- committed JDBC Connection
[DEBUG][org.hibernate.jdbc.JDBCContext.afterTransactionCompletion(JDBCContext.java:199)]- after transaction completion
[DEBUG][org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:398)]- aggressively releasing JDBC connection
[DEBUG][org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:435)]- releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
[DEBUG][org.hibernate.impl.SessionImpl.afterTransactionCompletion(SessionImpl.java:417)]- after transaction completion
[INFO][ dao.hibernate.ClientDAOHibernate.evictIfStaleByDate(ClientDAOHibernate.java:114)]- Eviction of Client with id: 1 Occured: true
=========== Done Evicting Client =============