cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [Woody] Datatypes revisited
Date Fri, 14 Nov 2003 09:28:43 GMT
On Fri, 2003-11-14 at 03:17, Antonio Gallardo wrote:
> Hi:
> 
> I found another problem with binding:
> 
> Woody current support is for java.util.Date
> OJB support is for java.sql.Date:
> 
> http://db.apache.org/ojb/jdbc-types.html
> 
> Problem here is we cannot make "direct" binding because of a cast class
> expception if we try to insert using OJB an Object java.util.Date (woody
> defined type).
> 
> On the other hand if I set the type of the bean to java.sql.Date then the
> woody binding framework reject to work.
> 
> So this is a dilema. I thought about a convertor between java.sql.Date and
> java.util.Date. For binding

The convertors in Woody are for translating between string and object
representations.

It has been proposed before to add some casting methods to the
datatypes, for example:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106776875918689&w=2

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message