You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Craig L Russell <Cr...@Sun.COM> on 2007/08/09 03:07:01 UTC
Re: JDO 2.1 Chapter 12.17 improvement
Hi Jörg,
I have no issue with your suggestion.
Does anyone object? Like an implementation who would have to actually
do the work? JPOX?
Craig
On Aug 6, 2007, at 3:57 AM, joerg.von.frantzius@artnology.com wrote:
> Hello Craig,
>
> I had a quick look at the draft, and, next to feeling honoured, I
> was particularly happy to see chapter "12.17 Server Date". Only a
> few weeks ago I made some bad experience with JPA/Hibernate with
> the same problem of obtaining the current timestamp from the
> database, with nanoseconds missing in particular. I'd like to
> comment that having nanoseconds precision where available is very
> desirable here.
>
> In my case I have to log some kind of events in the database, and
> later on I need to deterministically retrieve them sorted by
> timestamp of their occurrence. It turned out that a precision
> milliseconds was a problem, because events often occured within the
> same millisecond, so I ended up retrieving logged events in some
> arbitrary order that was different from their real order of
> occurrence.
>
> So I'd suggest something along the lines of the following in that
> chapter:
>
> "The underlying implementation should return instances of
> java.sql.Timestamp for databases that support nanosecond-precision
> of date-time values."
>
> Regards,
> Jörg
>
> Zitat von Craig L Russell <Cr...@Sun.COM>:
>
>> at http://db.apache.org/jdo/documentation.html
>>
>> Check it out, and send comments...
>>
>> Craig Russell
>> Architect, Sun Java Enterprise System http://java.sun.com/products/
>> jdo
>> 408 276-5638 mailto:Craig.Russell@sun.com
>> P.S. A good JDO? O, Gasp!
>
>
>
Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!