[Pride-users] Re: PriDE
Brought to you by:
jlessner
|
From: <jle...@ma...> - 2005-04-05 07:52:05
|
Hi Franco Ok, I will have a look at it, but I will need your help for DB2 tests because I have currently no installation available. I will post you an appropriate improvement until end of this week, ok? If it works well, I will prepare a minor update for PriDE with the fix. Cheers, Jan > Jan, > > thanks for the answer, > I looked into, but is not simple to change without knowledge of all the > classes, maybe you can do it better as me, > you should chek at the decimal digigt if NUMERIC, like this, > > ... > DatabaseMetaData dmd = User.getSQLConnection().getMetaData(); > ResultSet rs = dmd.getColumns( getCatalog(), getSchema(), getName(), null > ); > ... > int decimals = rs.getInt( "DECIMAL_DIGITS" ); > ... > > then if NUMERIC and decimals > 0 > ... > returnType = "java.math.BigDecimal"; > > Thanks > > jle...@ma... wrote: > >>Franco, >>The type mapping is performed in class de.mathema.pride.util.TableColumns >>by function getType(). It is just a big switch-case-cascade, so it should >>be very simple for you to modify it according to your needs. >> >>Regards, >>Jan >> >> >>PS: There is a PriDE mailing list available on SourceForge which you >>usually get faster response from ;-) >> >> >> >>>hello, >>>just run little test on DB2/400, >>>I see some generation problem on decimal field mapped to long, >>>can you point me to the class that do the class generation to look for a >>>fix ? >>> >>>Thanks >>> >>>-- >>>----------------------------------------------------------------------------- >>>*** This messages was scanned for malicious contents *** >>>----------------------------------------------------------------------------- >>>Franco Biaggi >>>CH-6807 Taverne >>> >>> >>> >>> >> >> >> >> >> >> > > > -- > ----------------------------------------------------------------------------- > *** This messages was scanned for malicious contents *** > ----------------------------------------------------------------------------- > Franco Biaggi > CH-6807 Taverne > > |