timestamp « Composite « JPA Q&A





1. composite-id fu 3, the case of the timestamp anomaly...    forum.hibernate.org

Author Message greg_barton Post subject: composite-id fu 3, the case of the timestamp anomaly... Posted: Tue Sep 09, 2003 2:46 pm Pro Joined: Tue Aug 26, 2003 1:24 pm Posts: 213 Location: Dallas, TX Hey, I'm back again, with another funky problem. Same situation with the autogenerated composite id (working like a champ thanks to Gavin's Debugging Fu) but ...

2. Timestamp Object as part of composite pk on Oracle 9i    forum.hibernate.org

Gentlemen; I have as a requirement use of a Timestamp object as part of a composite primary key. The data for the timestamp initialization originates from form request parameters and is processed as follows: Calendar calendar= Calendar.getInstance(); calendar.set(year , month-1, day, 0, 0, 0); Timestamp stamp = new Timestamp(calendar.getTimeInMillis()); stamp.setNanos(0); Oracle 9i evidently stores dates with hrs, seconds, nanoseconds with values ...