Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bscott

Pages: [1]
1
General Board / Re: DDL transformation datatypes
« on: February 13, 2007, 12:04:20 am »
Hi,

I don't understand.

If I set a class attribute type to string and add a string ->varchar mapping to SQL200 database and set this database as the default, the type gets transformed to text.

If I set the class attribute type to mystring and map mystring->varchar then the type gets tranformed to varchar.

The transfromation template for attribute contains:-

 type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,attType)%%qt%

I understand this to mean: lookup the class attribute type as commontype in the datatype/commontype mapping list for the default database and transform commontype to datatype if the mapping exists.

I don't know what I need to change to get string transformed to varchar.

Thanks,

2
General Board / Re: MagicDraw Import Problem
« on: February 11, 2007, 08:10:29 am »
I couldn't find anything in the forum realting to this.

I have emailed support with the xml files as I couldn't see how to attach them to a post.

3
General Board / MagicDraw Import Problem
« on: February 11, 2007, 12:19:34 am »
I have a trial version of EA 6.5 and am trying to import class diagrams from MagicDraw 9.5 Community Edition. The classes get imported but the association don't.

I have created a simple class diagram in MagicDraw with just two classes and an assocation to try this out.

I downloaded a trial of the Visual Paradigm UML tool and imported from MagicDraw into that Ok. If I then export from VP and import into EA I get the associations.

Is this a bug in EA?

Thanks,


4
Automation Interface, Add-Ins and Tools / Re: Cakephp
« on: November 01, 2007, 10:22:40 am »
I have created some templates to transform a class model to a data model using the Cake naming conventions eg ClassName -> class_name table and to correctly create the primary and foreign keys according to Cake conventions. I use an add-in to do the name conversions.

I have also created a custom language with code generation templates to create the model .php files with the $hasOne, $hasMany, $belongsTo variables set according to the model class associations.

I am currently trying to see how I can create two source files so I can generate the controller php files as well. The only way I can see how to do this from a custom language is to use an add-in.

I would be happy to share this but it is very much in the early stages at the moment.

Pages: [1]