db-ojb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danilo Tommasina <dtommas...@risksys.com>
Subject Re: can an INTEGER version field be mapped to Integer instead of int?
Date Wed, 01 Oct 2003 15:13:57 GMT
try to set rowVersion= 0, this should be interpreted as null

not very nice, but so should work...

bye
danilo

> I am using an integer field for optimistic locking. It is
> declared INTEGER in the database, and is mapped to
> an int field in the persistent object class...
> 
> class Customer {
>       private int customerID;  // the primary key
>       private int rowVersion;  // the lock field
>   ...
> }
> 
> Is it possible to map these fields, especially the rowVersion
> field, to Integer insted of int? Or will it cause problems for
> optimistic locking?
> 
> Another developer in my group wants to use a query by example,
> and can't because he can't specify rowVersion as null.
> 
> thanks,
> Bonnie MacKellar
> 


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


Mime
View raw message