[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-575) Able to add meta information on the reveng.xml file (common configuration for all renerated classes)

Tonté Pouncil (JIRA) noreply at atlassian.com
Mon Apr 27 14:19:17 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33035#action_33035 ] 

Tonté Pouncil commented on HBX-575:
-----------------------------------

Okay, since my last post I have check out the source code of hibernate tools and updated the hibernate-reverse-engineering-3.0.dtd; which is located under tools/src/java/org/hibernate. I have modified the DTD to accepted the <meta> tag for the <key-column> tag. I have also modified the PojoPropertyAccessors.ftl free-marker templates to use my table configuration defined in my reveng.xml file to be used in create the POJOs, in regards to set-scope and get-scope.

Let me know if any of my customization can be of any use to you as I am more than willing to share what I have learned. How do I get my changes review and check into the source code?

Thanks!

Tonté 

> Able to add meta information on the reveng.xml file (common configuration for all renerated classes)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HBX-575
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-575
>             Project: Hibernate Tools
>          Issue Type: Improvement
>          Components: reverse-engineer
>    Affects Versions: 3.1beta4
>            Reporter: David Leal
>             Fix For: 3.2beta9
>
>         Attachments: svn-patch2.txt
>
>
> Just to add the posibility to set some meta information common to all possible generated *.hbm files, for example to set that ALL generated file will implement toString method or equal/hash code.
> A good solution whoud be to add some filter options in order to speficy the set of Tables it would apply, using regular expresion, like include nestede target from ant. Something like this:
> <meta attribute name="theAttributeName" value="theValue">
> <include name="theListOfTableToInclude"/>
> <exlude name="theListOfTablesToExclude">
> </meta>
> If it is more complicated just to add the possibility to add meta information for all possible generated files.

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