Could you override the get() method?

So normally myTable.get() expects an integer and gets the object.
If you can override that then you can pass it your really key...
But I think maybe this gets too complicated.

Perhaps you should just make a new method which knows how to do the query 
you are looking for.

You probably also want to create a unique index on the fields that make up 
the key.

--
Rick

On Tue, 31 Oct 2006, Oleg Broytmann wrote:

> On Tue, Oct 31, 2006 at 11:57:26AM -0600, Aaron Bostick wrote:
>>  Could I do something like override the getter for the id column and
>> return the concatenation of the first 3 fields?
>
>   I am afraid the idea of single-value id is built so deep in SQLObject
> it would be hard to combat it with any simple measure.
>
> Oleg.
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to