[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1117) ReverseEngineeringStrategy should get access to generated PersistentClass before executing the hbm2hbmxml export

Magnus Jungsbluth (JIRA) noreply at atlassian.com
Tue Mar 31 17:23:38 EDT 2009


ReverseEngineeringStrategy should get access to generated PersistentClass before executing the hbm2hbmxml export 
-----------------------------------------------------------------------------------------------------------------

                 Key: HBX-1117
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1117
             Project: Hibernate Tools
          Issue Type: Patch
          Components: reverse-engineer
    Affects Versions: 3.2.4.GA
         Environment: hibernate tools revision 16240
            Reporter: Magnus Jungsbluth
         Attachments: revengstrategy_persistentclass_access.patch

When implementing a ReverseEngineeringStrategy it is currently impossible to have a last word on the generated PersistentClass. It is for instance not possible to mark natural-ids or set discriminator fields not to speak of subclasses.

The included patch is a trivial extension of ReverseEngineering Strategy and provides two methods that are called from JDBCBinder while doing a reverse engineering:
- finishColumnMapping(org.hibernate.mapping.Property)
- finishTableMapping(org.hibernate.mapping.PersistentClass)

With these methods a ReverseEngineeringStrategy gains full control over the generated mapping to fine-tune results.



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