[EMAIL PROTECTED] wrote:

I am trying to limit a select from a logtable to the last so many days worth
of entries, but I get a class cast exception. Other criteria on same table
work OK, so I'm sure most of the setup is good. Am I missing something
really obvious? Is there an example available for querying by timestamp?


Can you post the exception ? Also, what version of OJB do you use ?

As a second question, the underlying database table has a compound primary
key across (log_time, ipm_session, command) .. how should that be mapped in
repository.xml?


I'm not sure, but I think you can define compound primary keys by using the primarykey attribute for each field that is part of the primary key (and similarily in the database).

Tom


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to