[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-395) @Embedded can not map interface
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Fri Aug 25 18:23:24 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-395?page=comments#action_24099 ]
Emmanuel Bernard commented on ANN-395:
--------------------------------------
This one is easy if someone is interested in a patch contribution
> @Embedded can not map interface
> -------------------------------
>
> Key: ANN-395
> URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-395
> Project: Hibernate Annotations
> Type: Bug
> Versions: 3.2.0.cr1
> Reporter: Daniel Tabuenca
>
>
> When configuring with HBM/XML a component you can use the class="com.MyClassImpl" to especify the implementation class for a component property. This would be equivalent to something like.
> @Embedded(targetEntity=MyClassImpl.class)
> MyClassInterface getMyClass(){
> return myClass;
> }
> While I know this is not part of the EJB3 spec, being that it is a feature in hibernate when using hbm/xml there should be a simple way to do this with annotations without having to resort to custom user types.
--
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