[
http://opensource.atlassian.com/projects/hibernate/browse/HCANN-11?page=c...
]
vamshi gunda updated HCANN-11:
------------------------------
Attachment: ReportSection.java
@Filter does throws expception when used on a join with an
assiociation
-----------------------------------------------------------------------
Key: HCANN-11
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HCANN-11
Project: Hibernate Commons Annotations
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira