[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-713) hbm2java task: meta support needed for class level annotations
Anand Mahajan (JIRA)
noreply at atlassian.com
Wed Jun 2 05:33:37 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37320#action_37320 ]
Anand Mahajan commented on HBX-713:
-----------------------------------
Is the solution to this problem released in any of the hiberante distributions? I want to place certain custom annotations in the hbm2java generated classes so that I can generate Flex Data Transfer object classes (Action Script classes) out of Hibernate entity classes using an DTO2fx Annotations processor.
> hbm2java task: meta support needed for class level annotations
> --------------------------------------------------------------
>
> Key: HBX-713
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-713
> Project: Hibernate Tools
> Issue Type: Bug
> Components: hbm2java
> Affects Versions: 3.2beta6
> Environment: hibernate tools 3.2 beta 6
> JBoss 4.0.4.GA with EJB3
> Reporter: Daniel Pocock
> Attachments: class-annotations.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> We use hbm2java to create EJB3 entity beans from hbm files. It would be really useful to use the `meta' element to insert additional class level annotations. Is someone already working on such a feature, or should I submit a patch?
> Here is an example of what I would like to do:
> <meta attribute="extra-import">org.jboss.seam.annotations.Name</meta>
> <meta attributre="class-annotation">@Name("myObject")</meta>
> such that the following code would be generated:
> import javax.ejb.Entity;
> import org.jboss.seam.annotations.Name;
> @Entity
> @Name("myObject")
> public class MyObject ....
--
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