Re: Retrieve extra, generated column when loading objects

2008-07-21 Thread Wout
Mike Kienenberger schreef: Wout wrote: I am building a complaint management system. When I'm loading a list of complaints, I'd like to retrieve an extra column that contains some information that is determined in SQL on the fly. 2) Create a view in oracle so that the computed value of TOO_LATE

Re: Retrieve extra, generated column when loading objects

2008-07-14 Thread Mike Kienenberger
What you're looking for is called a derived attribute. I'm not certain what support Cayenne currently has for derived attributes. Two ways you can handle it independent from Cayenne are: 1) create a method on your ObjEntity class: public boolean getTooLate() { return [something based on get

Retrieve extra, generated column when loading objects

2008-07-14 Thread Wout
Hello, I am building a complaint management system. When I'm loading a list of complaints, I'd like to retrieve an extra column that contains some information that is determined in SQL on the fly. For example, if the complaint table has a column to store the date by which the complaint shoul