Re: newbie question

From: Borut Bolčina (borut.bolcin..mail.com)
Date: Tue Apr 22 2008 - 10:27:22 EDT

  • Next message: Borut Bolčina: "Log level INFO for error at creating db table should be WARN"

    :-)

    The output:

     INFO [22 Apr 2008 16:21:05.055] SELECT MAX(t0.id) AS sc0 FROM event t0
     INFO [22 Apr 2008 16:21:05.074] === returned 1 row. - took 19 ms.
     INFO [22 Apr 2008 16:21:05.075] +++ transaction committed.
     INFO [22 Apr 2008 16:21:05.082] Events max record number: 300359

    Thanks, Andrus. The code is now lighter and that is always good.

    2008/4/22 Andrus Adamchik <andrus@objectstyle.org>:

    >
    > On Apr 22, 2008, at 4:33 PM, Borut Bolčina wrote:
    >
    > String ejbql = "SELECT max(id) FROM Event";
    > >
    >
    > Try "SELECT max(e.id) FROM Event e"... Using entity aliases seems to be
    > required by the EJBQL spec which Cayenne tries to follow.
    >
    > Andrus
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Apr 22 2008 - 10:35:17 EDT