And if you're a dumb user, you can also do this in the GUI. Just select the
columns you want to change and set the desired type in the combo. I wonder
why nobody sees this...

The reason why this happened is probably due to Hsqldb and PostgreSQL
reporting different JDBC types for some columns, and the old prefs file
(generated in hsqldb mode) doesn't "fit" the one generated in PostgreSQL
mode. You could try deleting (moving away) the prefs file before generating
with Oracle.

Aslak

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Jens
> Fischer
> Sent: 26. november 2002 08:40
> To: [EMAIL PROTECTED]
> Subject: Re: [Middlegen-user] error with new BigDecimal(BigDecimal)
>
>
> Hallo K,
>
> Tuesday, November 26, 2002, 4:32:46 AM, you wrote:
>
> > I tried the samples in Middlegen-2.0-b1 on Windows 2000, JBoss
> 3.0.0 and
> > Sun jdk 1.3.1_04-b02.
> > It ran fine with hsqldb. Thanks for this impressive product.
>
> > I then tried the samples with an Oracle 8.1.7 database with already
> > existing tables.
>
> > Compilation fails on many generated action classes during
> Compile-web with:
>
> > compile-web:
> > Overriding previous definition of reference to compile.class.path
> >      [javac] Compiling 1054 source files to
> > C:\middlegen-2.0-b1\samples\build\classes
> >      [javac]
> >
> C:\middlegen-2.0-b1\samples\build\gen-src\airline\web\struts\Delet
> eAmTJobAction.java:60:
> > cannot resolve symbol
> >      [javac] symbol  : constructor BigDecimal  (java.math.BigDecimal)
> >      [javac] location: class java.math.BigDecimal
> >      [javac]       java.math.BigDecimal amTJob_PK = new
> > java.math.BigDecimal(jobId);
>
> [...]
>
> After the first Middlegen run you have to edit the
> middlegen-prefs.[xml|properties] and manually replace every
> java.lang.BigDecimal with java.lang.Integer. Oh, and if you are
> already at this, take care of the java.sql.Timestamp and all the
> primitive data types if you like to.
>
> > Thanks,
> > KC Lau.
>
> --
> MfG,
>  Jens
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> _______________________________________________
> middlegen-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to