db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hakim <dha...@webcodex.com>
Subject Problem with object model generation when a timestamp is a PK
Date Mon, 21 Apr 2003 14:39:24 GMT
	Anybody know a good workaround for errors in om code generation due to 
a column of type TIMESTAMP being used as a primary key ? Not that 
anyone should use a timestamp as a primary key :) but just supposing 
they were ... the following code gets generated in the base Object 

     public void setPrimaryKey(ObjectKey key) throws TorqueException
         SimpleKey[] keys = (SimpleKey[]) key.getValue();
         SimpleKey tmpKey = null;


Notice the bonus close paren.


View raw message