[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-125) Add support for fields declared by interface or unmapped superclass

Przemyslaw Jaskierski (JIRA) noreply at atlassian.com
Fri Dec 21 05:53:06 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29194 ] 

Przemyslaw Jaskierski commented on HSEARCH-125:
-----------------------------------------------

Just to keep it as consistent as possible it would be good to add targetEntity param to @IndexEmbedded, too.

Thanks for this patch, I'm looking forward for the release with this functionality included.

> Add support for fields declared by interface or unmapped superclass
> -------------------------------------------------------------------
>
>                 Key: HSEARCH-125
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-125
>             Project: Hibernate Search
>          Issue Type: Improvement
>          Components: engine, mapping
>    Affects Versions: 3.0.0.GA
>            Reporter: Igor Stroh
>            Priority: Minor
>             Fix For: 3.0.1
>
>         Attachments: IndexedTarget.patch
>
>
> If an @IndexedEmbedded field is delcared by an interface or a unmapped superclass, there is no way hibernate-search can resolve the concrete class (compare to org.hibernate.annotations.Target or the targetEntity parameter for @*To* annotations). The attached patch solves this issue by introducing a IndexedTarget annotation which, much like @Target, expects the mapped class as its single parameter. See test/org/hibernate/search/test/embedded/
> changes for a simple example.
> This issue was first exmplained in http://forum.hibernate.org/viewtopic.php?p=2366118

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