[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1082) Creating a formula property when reverse engineering

Anders Reinhardt Hansen (JIRA) noreply at atlassian.com
Thu Aug 14 05:26:06 EDT 2008


Creating a formula property when reverse engineering
----------------------------------------------------

                 Key: HBX-1082
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1082
             Project: Hibernate Tools
          Issue Type: Improvement
          Components: reverse-engineer
    Affects Versions: 3.2.beta11
         Environment: All environments
            Reporter: Anders Reinhardt Hansen
            Priority: Minor


Having lots of formula properties in mapping files is quite frustrating when reverse engineering database changes.
Therefore it would be a big help if there was a way to write formula properties in the Hibernate Reverse Engineering files.
A property formula is a property of a mapping file which is calculated by hibernate.
I.e.
<class name="XXX">
	<column name="xxx" type="xxx" formula="(coloumn1+coloumn2)/coloumn3"/>
</class>

the reveng file could look like this

<hibernate-reverse-engineering>
	...
	<formula name="xxx" type="xxx" formula="(coloumn1+coloumn2)/coloumn3"/>
</hibernate-reverse-engineering>

Maybe the reverse engineering file is not the correct place for this feature. Suggestions are welcome

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