Andy Brook [The Plugin People] asked this question · 14,920 karma · Jan 21 '12 at 07:11 PM
I have an AO entity with lifecycle info like 'created' (Timestamp type) and a data entity that extends it. I want to use AO to retrieve the data entities, ordered with most recent dates first. If I try the following:
Query query=Query.select().order("created"); MyObj = aoService.find(MyObj.class,query);
I get: ERROR: column "created" does not exist Position: 58 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:251)
But, the table does have a Timestamp column, A bug possibly? Even if this worked, Im curious how I would indicate 'ascending' or 'descending' orders.
Anyone got an example to hand?