Hello,

 

I have a table called TRANSACTION, with TRANSACTION_ID and LOG_ID fields.
I'd like these to be part of a composite primary key.  How do I do this?
I've set primaryKey="true" for both fields in the schema file, but what
next?  Primarily, I'm interested in this problem:  

 

When I "edit" a Transaction, what I really want to do is fetch the row for
the given TRANSACTION_ID that has the "largest" LOG_ID, clone that row,
increment the LOG_ID by 1, set any attributes that the user changed, and
then persist it back to the database through transaction.save().  How do I
do this in the face of unique ids automatically fetched from the IdBroker?

 

Thanks!

Cheers,

Dave

 

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)

 

Reply via email to