[hibernate-issues] [Hibernate-JIRA] Created: (ANN-634) @CollectionOfElements cannot be combined with @Filter or @Where

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Jul 17 09:49:52 EDT 2007


@CollectionOfElements cannot be combined with @Filter or @Where
---------------------------------------------------------------

                 Key: ANN-634
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-634
             Project: Hibernate Annotations
          Issue Type: Bug
          Components: binder
    Affects Versions: 3.3.0.ga
            Reporter: Emmanuel Bernard
            Assignee: Emmanuel Bernard
             Fix For: 3.3.1


Caused by: org.hibernate.MappingException: @ManyToMany or @CollectionOfElements defining filter or where without join fetching not valid within collection using join fetching[xxxx]
at org.hibernate.cfg.annotations.CollectionBinder.checkFilterConditions(CollectionBinder.java:1249)
at org.hibernate.cfg.annotations.CollectionBinder.bindManyToManySecondPass(CollectionBinder.java:1235)
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:576)
at org.hibernate.cfg.annotations.MapBinder$1.secondPass(MapBinder.java:79)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1130)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:316)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1286)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)

-- 
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