[ http://jira.andromda.org/browse/DB-8?page=history ]

Wouter Zoons reassigned DB-8:
-----------------------------

    Assign To: Wouter Zoons  (was: Chad Brandon)

> Database cartridge does not build with 'dummy-data-script'
> ----------------------------------------------------------
>
>          Key: DB-8
>          URL: http://jira.andromda.org/browse/DB-8
>      Project: Database Cartridge
>         Type: Bug
>  Environment: andromda-database-cartridge-1.0-SNAPSHOT
> Eclipse 3.1.1 Build id: M20050929-0840
>     Reporter: Juan Carlos
>     Assignee: Wouter Zoons
>  Attachments: patch-DB-8.txt
>
> In order to use the database cartridge in the contrib module to generate a 
> dummy data creation script I tried to build it.
> I do built successfully the database cartridge when I don't adjust the 
> andromda.xml file of the test. Only when I add the
> 'dummy-data-script'
> property in the database namespace I get the error. What I'm trying to verify 
> is if the script to load dummy data in the database can be generated with 
> this cartridge.
> I got the error the error:
> ......
> Invocation of method 'resolveOrderedTableMap' in  class 
> org.andromda.cartridges.database.DatabaseUtils threw exception class 
> java.lang.ClassCastException : 
> org.andromda.cartridges.database.metafacades.ColumnLogicImpl
> ......
> I reviewed and it was due to the AssociationTable instances was not 
> considering as part of the collection of tables that is passed to the 
> 'resolveOrderedTableMap' service of 
> org.andromda.cartridges.database.DatabaseUtils.
> I adjusted the files:
> /cvsroot/andromda/contrib/cartridges/andromda-database/conf/test/andromda.xml
>    - Added the 'dummy-data-script' property in the database namespace.
> /cvsroot/andromda/contrib/cartridges/andromda-database/src/java/org/andromda/cartridges/database/DatabaseUtils.java
>    - Adjust to consider that the collection of tables can contain 
> AssociationTable instance.
> /cvsroot/andromda/contrib/cartridges/andromda-database/src/java/org/andromda/cartridges/database/metafacades/AssociationTableLogicImpl.java
>    - Added some extramethods (getDummyLoadSize, isEnumeration, 
> getNonForeignKeyColumns) to not get errors in the 'create-dummy-load.vsl' 
> velocity template.
> Thanks for applying this...




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Reply via email to