Re: cayenne INSERTs NULL values instead of strings - SOLVED

From: Mike Kienenberger (mkienen..mail.com)
Date: Thu Aug 03 2006 - 13:15:59 EDT

  • Next message: Joshua Pyle: "Re: cayenne INSERTs NULL values instead of strings - SOLVED"

    For velocity itself, there's

    http://jakarta.apache.org/velocity/docs/user-guide.html

    If you're going to create your own customized templates, I'd recommend
    using version 1.2 of cgen (the code generator).

    This puts some code tools into your template context to let you do
    common templating operations easier.

    You can look at the default templates for examples, and taken from
    there (for 1.2) are:

    ## Classes available in template
    ## objEntity - the ObjEntity class: See
    org.objectstyle.cayenne.map.ObjectEntity
    ## stringUtils - class for string "helper" functions: See
    org.objectstyle.cayenne.gen.StringUtils
    ## entityUtils - class for entity "helper" functions: See
    org.objectstyle.cayenne.gen.EntityUtils
    ## importUtils - class for import statement management: See
    org.objectstyle.cayenne.gen.ImportUtils

    On 8/3/06, peter karich <peatha..ahoo.de> wrote:
    > Thank you very much!
    >
    > My problem is solved! Now I get the none NULL values
    > :-)
    >
    > (Are there any doc's available for the
    > 'template-language'?)
    >
    > Peter.
    >
    >
    >
    > ___________________________________________________________
    > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
    >



    This archive was generated by hypermail 2.0.0 : Thu Aug 03 2006 - 13:16:23 EDT