AW: [OJB-developers] [PATCH] Problems with java.util.Date objects
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2002-04-18 12:47:31
|
Hi Leandro, > > hi all. I don't really know for sure but I think there is > nowhere in OJB > that java.util.Dates are converted to java.sql.Dates before database > insertion. Yes that's not implemented right now. it's on the todo list for a long time... > here is a patch that corrects this behavior. > I didn't applyied it because I'm not sure if this is the *right* place > to include this logic > I would prefer to have all type conversions in single place: the ConversionStrategy implementations. A conversion from java.util.Date to java.sql.Date is not a platform specific thing, but a typical type conversion from/to the RDBMS. cheers, Thomas > -- > Leandro Rodrigo Saad Cruz > IT - Inter Business Tecnologia e Servicos (IB) > http://www.ibnetwork.com.br > |