[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-6535) Support @org.hibernate.annotations.Target

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Aug 2 11:35:02 EDT 2011


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

Hardy Ferentschik resolved HHH-6535.
------------------------------------

    Resolution: Fixed

> Support @org.hibernate.annotations.Target
> -----------------------------------------
>
>                 Key: HHH-6535
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6535
>             Project: Hibernate Core
>          Issue Type: Sub-task
>          Components: metamodel
>            Reporter: Hardy Ferentschik
>            Assignee: Hardy Ferentschik
>             Fix For: 4.0.0.next
>
>
> {quote}
> Sometimes, the type guessed by reflection is not the one you want Hibernate to use. This is especially true on components when an interface is used. You can use @Target to by pass the reflection guessing mechanism (very much like the targetEntity attribute available on associations.
> {code}
>     @Embedded
>     @Target(OwnerImpl.class)
>     public Owner getOwner() {
>         return owner;
>     }
> {code}
> {quote}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list