If I define a new Datatype 'Email' in Model, where
should I really map for data-type 'VARCHAR (50)' so
that I don't get any compile problems and the SQL
scripts should be generated with VARCHAR(50) ?

I am using Hibernate as persistence and using
andromda-bin-3.0M3-SNAPSHOT.

Thanks.


--- Walter Mour�o <[EMAIL PROTECTED]> wrote:

> Hi Katta, comments below:
> 
> Katta <[EMAIL PROTECTED]> writes:
> >I have 2 questions:
> >
> >(1) Where can I set the datatype length (such as
> >VARCHAR (30), etc) as I was just giving 'String' as
> >the datatype for any Attribute that I have added to
> >the Entity?
> You can create all the datatypes you want
> (ShortDescription,
> LongDescription, Money, etc.) and use the mappings
> files  to map the
> model's datatype to the plataform datatypes
> (varchar, number, etc.).
> >
> >(2) How can I specify foreign-keys? For example,
> >'Account' should have a foreignkey pointing to
> >'Customer' primary key. In few use-cases we might
> be
> >just accessing 'Account' records and need to fetch
> >information from related Customer as well.
> The model's associations will create the needed
> foreign-keys.
> >
> >Thank you.
> 
> You're welcome,
> 
> Walter
> 
>
---------------------------------------------------------------------------
> Walter Itamar Mour�o - Diretor de Tecnologia e
> Projetos - Arcadian S/A
> www.arcadian.com.br
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to