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

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Thu Apr 2 14:48:38 EDT 2009


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

Max Rydahl Andersen commented on HBX-1117:
------------------------------------------

hmmm - I'm not too excited about giving revengstrategy an open-ended method.

Got a testcase showing what you want to use this for ?

> 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