(1) As I was using 'hibernate' and 'bin' version of Andromda, I don't see that file in any directory. It must be in some JAR file, I believe. Which JAR file is this? Should I change the file there and re-JAR that? Or is there any better mechanism?
(2) Without changing the files, is there is any that I can enter few new-user-defined-datatypes such as 'Email', 'Phone', etc. and use that to append automatically to the system mapping file? Thank you --- Walter Mour�o <[EMAIL PROTECTED]> wrote: > You have to create an entry like: > > <mapping> > <from>datatype.Email</from> > <to>VARCHAR(50)</to> > </mapping> > > in your SqlMappings file. You define your sql > mapping file using the > sqlMappingsUri namespace property. > > Walter > > Katta <[EMAIL PROTECTED]> writes: > > > >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 > > > > > --------------------------------------------------------------------------- > 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
