db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Jefferson <a...@jpox.org>
Subject Re: Binding a char to PreparedStatement
Date Wed, 20 Jul 2005 16:40:04 GMT
> > "The jdbc-type attribute declares the type of the column in the
> > database. This type is defaulted based on the type of the field
> > being mapped."
> >
> > Does this mean, that an implementation may choose for an default?
> That was not the intent. The intent was that the JDBC type would be
> obvious. ;-) And the "obvious" jdbc-type for char and Character is
> CHAR. I'll raise this issue with the JDO experts to be sure.

Well in the case of a char it is, but in the case of a java double for 
example ? It all depends on the RDBMS. Some RDBMS support DOUBLE, some 
DECIMAL, some NUMERIC, some have other types ...

Java Persistent Objects - JPOX

View raw message