Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2010-09-03

Replies: Find Java Web Hosting

Author LoginPost Reply

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

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

another example on the forum: https://forum.hibernate.org/viewtopic.php?f=9&t=1001649

Emmanuel is that you final position? I don't think we're downcasting the query here, but the "store" operation; wouldn't hibernate core store the additional fields in the database?

> @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.3.0
>
>      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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.