db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gelhar, Wallace Joseph" <GELHA...@uwec.edu>
Subject OJB does not respect the jdbc-type declared in the repository
Date Tue, 16 Dec 2003 21:26:58 GMT
Hi All,

I've noticed a bug loading an object with the following types:

Database:	tinyint (1 byte integer)
Repository:	INTEGER
Object:	Integer 

OJB does not respect the repository and returns a java.lang.Short
instead of a java.lang.Integer.  Is OJB pulling the attribute type from
the jdbc type?  I know a while back a contribution was made to allow OJB
to query jdbc to determine the attribute type if not specified in
repository, so is it now best practice to just leave the <jdbc-type>
attribute out of the repository?

Wally

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message