Re: PK ID retrieval code generation seems to fail

From: Aristedes Maniatis (ar..sh.com.au)
Date: Sun Aug 17 2008 - 10:23:55 EDT

  • Next message: John Armstrong: "Re: PK ID retrieval code generation seems to fail"

    On 17/08/2008, at 7:38 PM, John Armstrong wrote:

    > public $classGen.formatJavaType(${attr.Type}) getId() {
    > Object value = readProperty("id");
    > return (value != null) ? (Integer) value : 0;
    > }
    >
    > The getId() doesn't compile as it looks like something is not
    > interpolating cleanly during class generation?

    It looks like the templates are not being properly processed. I can't
    image why, but are you using cgen as described here: http://cayenne.apache.org/doc/cgen.html
      to create these files? If you have customised your templates could
    you try with the default ones.

    Ari Maniatis

    -------------------------->
    ish
    http://www.ish.com.au
    Level 1, 30 Wilson Street Newtown 2042 Australia
    phone +61 2 9550 5001 fax +61 2 9550 4001
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A



    This archive was generated by hypermail 2.0.0 : Sun Aug 17 2008 - 10:27:47 EDT