On Mon, 2003-09-29 at 17:29, Antonio Gallardo wrote: > Bruno Dumon dijo: > > On Sun, 2003-09-28 at 06:54, Antonio Gallardo wrote: > > <snip/> > >> > >> The initial XSP example (in JDO) just insert into the database a new > >> department (id=5" + a name) of course it would not work two times, > >> because the primary key cannot be duplicated. But this XSP example is > >> just to show a proof that the concept can work. We tried to do a > >> example with woody, but for an unknow reasons, the binding does not > >> work with the integer datatype defined in the Employee table of the > >> HSQLDB database shipped with Cocoon. :( > > > > I guess this is because Woody doesn't have an integer > > (java.lang.Integer) datatype yet, only long and bigdecimal. I hope to > > add that one and others (float and double) in the future. > > Thanks for your answer. How we can implement this?
Similar to the other datatypes: you need at least a IntegerType and IntegerTypeBuilder class (similar to the LongType and LongTypeBuilder classes). Then you'll also need "convertors", similar to the *LongConvertors. > If we really need to > connect to database stuff all the datatypes are very important :-D yep, I know. > > Can we work in this area? sure. There's a code-freeze going on though. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED]
