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

    Resolution: Fixed

patch applied, thanks Juan!

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




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click

Reply via email to