--- Darren Hartford <[EMAIL PROTECTED]> wrote:
> Hey all,
> Just throwing this out for input, comments,
> criticisms, etc.
> 
> Problem:
> Most EJB-based/O-R Mapping Objects/References use
> java.sql.Date (and maybe a couple other
> classes/objects that aren't XML/WebService friendly
> like some of the numerics). Most good tools using
> XML-based loaders have problems with these classes.
> 
> Solution:
> Create a standardized object very similar to Value
> Objects, but cast known non-XML-Standard java
> objects to standard-XML objects.
> Example:
> java.sql.Date -> java.util.Calendar
> java.util.Date -> java.util.Calendar
> 
> Yes, you could do it in the application that
> requires 'XML-aware' java objects...but doing that
> times 3-4 or more applications is silly when you can
> take care of it at the root - the data level.
> 
> Anyway, looking for feedback, maybe someone has
> already done this!
> -D

Date is my favorite while it comes to OR mapping :) 
It's also really funny to import / export those data
between different databases. All the syntax &
precision... & locales....

So I mostly use long milliseconds since 1.1.1970, and 
convert it to date when necessary.

It's portable, it's  xml-friendly, it can be easily
sorted and I do not depend on DB view about allowed
data formats, how they come out of db or whatever. 

regards.

=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung. 
Arbeitsort: Mainz 
Skills:  Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to