[hibernate-issues] [Hibernate-JIRA] Updated: (HSEARCH-438) Support runtime polymorphism on associations (instead of defining the indexed properties based on the returned type)

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sat Nov 6 11:04:14 EDT 2010


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

Emmanuel Bernard updated HSEARCH-438:
-------------------------------------

         Priority: Major  (was: Critical)
    Fix Version/s:     (was: 3.3.0)
      Component/s: engine
       Issue Type: New Feature  (was: Bug)
          Summary: Support runtime polymorphism on associations (instead of defining the indexed properties based on the returned type)  (was: @IndexedEmbedded does not work for child classes in inheritance tree)

Change the subject to reflect the evolution of the discussions.

> Support runtime polymorphism on associations (instead of defining the indexed properties based on the returned type)
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: HSEARCH-438
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-438
>             Project: Hibernate Search
>          Issue Type: New Feature
>          Components: engine
>    Affects Versions: 3.1.1.GA
>         Environment: Jboss 4.2.3.GA
> Hibernate Core 3.2
> Hibernate Search 3.1.1.GA
>            Reporter: Ted Williams
>         Attachments: Classes.zip, Classes.zip
>
>
> When using @IndexedEmbedded on a set/list of parent/top classes the @Field annotations in the child classes are not picked up and indexed.
> @IndexedEmbedded(depth=100)
> @OneToMany(fetch = FetchType.LAZY, mappedBy = "top", cascade = CascadeType.ALL)
> public Set<Parent> getParents() {
>    return parents;
> }
> public class Child extends Parent {
> private String childName;	
> @Field(name = "childName", index=Index.TOKENIZED) // This field is not picked up!!!
> .
> .
> }

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