[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-438) @IndexedEmbedded does not work for child classes in inheritance tree

Sanne Grinovero (JIRA) noreply at atlassian.com
Mon Dec 28 11:07:29 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35047#action_35047 ] 

Sanne Grinovero commented on HSEARCH-438:
-----------------------------------------

Some guidelines to contribute: https://www.hibernate.org/462.html
It explains also how to get the sources and gets you running with how to build and run the existing tests.
1) Look into the other tests in the sources
2) Add a new test, please follow coding conventions
3) Try it out
4) Create a patch/diff from it and attach to this page

About 3.1.2: I hope so but I'm not sure, will have to ask proj.lead when he comes back from vacations. Anyway if you get running with the steps above you could make your own version, we will help for sure in the implementation fix, so in case it won't be included in 3.1.2 you could apply the patch yourself.


> @IndexedEmbedded does not work for child classes in inheritance tree
> --------------------------------------------------------------------
>
>                 Key: HSEARCH-438
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-438
>             Project: Hibernate Search
>          Issue Type: Bug
>    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
>            Priority: Critical
>             Fix For: 3.1.2, 3.2.0.Beta3
>
>         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