Re: cayenne INSERTs NULL values instead of strings - SOLVED

2006-08-05 Thread Peter Karich
n Thu, 03 Aug 2006 19:16:50 +0200, Joshua Pyle [EMAIL PROTECTED] wrote: What did ya have to do? I did the following: I suggest that you delete all the generated classes, and in the class generator instead of advanced select Standard Persistent Objects and run the generator again.-

cayenne INSERTs NULL values instead of strings

2006-08-03 Thread peter karich
Hallo Cayenne Community, I like your project! But I can't get a simple Example to run. I used the newest hsqldb and the newest cayenne.jar (I tried also your hsqldb-1.8.0.2.jar from the modeler). Now I do the following 1. Easy creating a SimplePerson object with the modeler (with name=VARCHAR

Re: cayenne INSERTs NULL values instead of strings

2006-08-03 Thread Mike Kienenberger
That's a bit odd. Have you tried using createAndRegisterNewObject() instead? newObject is part of the new ObjectContext api, and I haven't used it myself. From the api docs: http://incubator.apache.org/cayenne/1_2/api/cayenne/org/objectstyle/cayenne/access/DataContext.html

Re: cayenne INSERTs NULL values instead of strings

2006-08-03 Thread Andrus Adamchik
On Aug 3, 2006, at 11:33 AM, Mike Kienenberger wrote: That's a bit odd. Have you tried using createAndRegisterNewObject() instead? newObject is part of the new ObjectContext api, and I haven't used it myself. 'newObject' should work fine... This has to be something else. Strange

Re: cayenne INSERTs NULL values instead of strings

2006-08-03 Thread peter karich
Thank you for your fast reply (wow!! :-) Yes the things are very basic and may be I am too stupid (hopefully not, so that I will not waste your time ...) Mike Kienenberger, I tried it with SimplePerson p = (SimplePerson)context.createAndRegisterNewObject(SimplePerson.class); and have the same

Re: cayenne INSERTs NULL values instead of strings - SOLVED

2006-08-03 Thread Mike Kienenberger
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

Re: cayenne INSERTs NULL values instead of strings - SOLVED

2006-08-03 Thread Joshua Pyle
What did ya have to do? -- Joshua T. Pyle Go has always existed. On 8/3/06, peter karich [EMAIL PROTECTED] 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.