[ 
http://jira.andromda.org/browse/SPRING-216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16216#action_16216
 ] 

Walter Itamar MourĂ£o commented on SPRING-216:
---------------------------------------------

I don't know... Take a look at 
http://docs.andromda.org/andromda-cartridges/andromda-spring-cartridge/namespace.html#daoInheritanceEnabled

I suggest you open another forum entry asking specifically about that.

> Entities not inheriting/extending parent DAO when enableTemplating is true
> --------------------------------------------------------------------------
>
>                 Key: SPRING-216
>                 URL: http://jira.andromda.org/browse/SPRING-216
>             Project: Spring Cartridge
>          Issue Type: Bug
>    Affects Versions: 3.4
>         Environment: java 1.6, maven 2.2, magicdraw 16.8, emf2.2 model
>            Reporter: Mike Dikan
>            Assignee: Chad Brandon
>         Attachments: mda-testing.tar.gz
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> Taken from: http://forum.andromda.org/viewtopic.php?f=9&t=6851
> I have an Entity class Foo that has a parent entity Bar. Bar has a dependency 
> on BarVO and Foo has a dependency on FooVO. When I generate code for Foo, I 
> expected the Entity to have 2 conversion methods: toFooVO and toBarVO, but it 
> has only one (toFooVO). I noticed when I set enableTemplating to false to 
> test a separate issue: http://forum.andromda.org/viewtopic.php?f=9&t=6850 
> that the Entity inherits the dependency properly and writes the necessary 
> code for conversion (toBarVO)
> (continued)
> I have my test project built and can reproduce the error there as well. I 
> have 4 classes, a FooParent, FooChild, FooParentVO, and FooChildVO. The 
> FooChild extends FooParent, FooChild depends on FooChildVO, and FooParent 
> depends on FooParentVO. The expectation is that FooChild will have cases in 
> transformEntity for both FooChildVO and FooParentVO. If I have 
> enableTemplating set to false, generation works as expected. If I have 
> enableTemplating set to true, I do not inherit a transform for ParentVO. I 
> also notice that all other template declarations depending on the 
> 'daoInheritanceEnabled' property will be missing in the ChildDaoBase as well, 
> including the class definition of extending the ParentDao (ChildDao extends 
> ParentDao)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d

Reply via email to