[hibernate-issues] [Hibernate-JIRA] Moved: (HHH-4980) @Filter does throws expception when used on a join with an assiociation

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Mar 9 08:11:47 EST 2010


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bernard moved HCANN-11 to HHH-4980:
--------------------------------------------

        Key: HHH-4980  (was: HCANN-11)
    Project: Hibernate Core  (was: Hibernate Commons Annotations)

> @Filter does throws expception when used on a join with an assiociation
> -----------------------------------------------------------------------
>
>                 Key: HHH-4980
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4980
>             Project: Hibernate Core
>          Issue Type: Bug
>         Environment: hibernate 3.2.6.ga
>            Reporter: vamshi gunda
>         Attachments: ReportSection.java
>
>
> Hi,
> I have an One to One association as shown below. But when i am saving the object, it throws me the following error. 
> The list "questionnaire" is in a class Section. I am trying to save a section object with a "ReportFormQuestion object" in it.
> Please let me know if you need any details.
> Thanks and regards
> Vamshi Gunda
>     @OneToMany(cascade = {javax.persistence.CascadeType.ALL}, fetch = FetchType.LAZY)
>     @JoinTable(name = "questionnaire", joinColumns = @JoinColumn(name = "for_section"))    
>     @Filter(name="excludeInactive")
>     private List<ReportFormQuestion> questionnaire = new ArrayList<ReportFormQuestion>();
> org.hibernate.event.def.AbstractFlushingEventListener : Could not synchronize database state w
> ith session
> org.hibernate.HibernateException: cannot recreate collection while filter is enabled: [tavant.twms.domain.customReports.Report
> Section.questionnaire#1100000002480]
>         at org.hibernate.action.CollectionUpdateAction.execute(CollectionUpdateAction.java:55)
>         at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
>         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
>         at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:170)
>         at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
>         at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
>         at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
>         at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
>         at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
>         at org.springframework.orm.hibernate3.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:655)
>         at org.springframework.transaction.support.AbstractPlatformTransactionManager

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list