[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-623) Add ability in reverse engineering config file to support cascades

toni garcia (JIRA) noreply at atlassian.com
Fri Jun 26 08:19:23 EDT 2009


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

toni garcia commented on HBX-623:
---------------------------------

Hi Max,

trying to overryde foreignKeyToAssociationInfo, i think i'm missing something here; properties are
always generated lazy, no mather what fetch i set in the AssociationInfo.

I think this is because EntityPojoClass is using value.isLazy() instead of property.isLazy() so 
you must set this also:

	value.setLazy(value.getFetchMode()!=FetchMode.JOIN);
        return this.makeProperty(TableIdentifier.create( table ), propertyName, value, insert, update, value.getFetchMode()!=FetchMode.JOIN, cascade, null);

Not sure about this, cause I don't khow nothing about hibernate code.

> Add ability in reverse engineering config file to support cascades
> ------------------------------------------------------------------
>
>                 Key: HBX-623
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-623
>             Project: Hibernate Tools
>          Issue Type: Patch
>          Components: reverse-engineer
>    Affects Versions: 3.0beta2
>         Environment: Hibernate Tools Beta 5
>            Reporter: tony anecito
>            Assignee: Anthony Patricio
>            Priority: Critical
>             Fix For: 3.2.4.GA
>
>         Attachments: many-to-one-attributes-with-test.diff, many-to-one-attributes.diff
>
>
> Please add ability to add cascade tag to resultant mapping files in the reveng file. Currently have to modifiy velocity template file

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