Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 5939 invoked from network); 3 Aug 2006 17:16:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 17:16:23 -0000 Received: (qmail 39848 invoked by uid 500); 3 Aug 2006 17:16:22 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 39831 invoked by uid 500); 3 Aug 2006 17:16:22 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 39822 invoked by uid 99); 3 Aug 2006 17:16:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 10:16:22 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mkienenb@gmail.com designates 64.233.184.229 as permitted sender) Received: from [64.233.184.229] (HELO wr-out-0506.google.com) (64.233.184.229) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 10:16:20 -0700 Received: by wr-out-0506.google.com with SMTP id 69so469663wra for ; Thu, 03 Aug 2006 10:16:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gJkiPXtvRMNlF3f7fKu9fT+hBMRIk1/SKr3RmAi3JptkOg9zK6XKTPcqcxCFl5v6OehohoJpcmku4qQXYMWrIROA8iy6g9LcrfRUWbg4bplWYIxQnfin1RrMuWrF31JKrw506ftzkFd1/nyUxvoONMMSTqj/gf/KWx795rdQnBQ= Received: by 10.78.158.11 with SMTP id g11mr842168hue; Thu, 03 Aug 2006 10:15:59 -0700 (PDT) Received: by 10.78.170.1 with HTTP; Thu, 3 Aug 2006 10:15:59 -0700 (PDT) Message-ID: <8f985b960608031015r47fbd860yc01ebfbd77e53a13@mail.gmail.com> Date: Thu, 3 Aug 2006 13:15:59 -0400 From: "Mike Kienenberger" To: cayenne-user@incubator.apache.org Subject: Re: cayenne INSERTs NULL values instead of strings - SOLVED In-Reply-To: <20060803171157.55345.qmail@web31108.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4B39B562-C4F6-493C-BEBF-6A38D5083C39@objectstyle.org> <20060803171157.55345.qmail@web31108.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 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 >