Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with CachedRowSet - Oracle

 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchersss

I'm with a strange situations. I have a table in oracle10g and one field that store date and time like yyyy-dd-mm HH:mm. If a got this data with ResultSet, everthing work well...but when I transform ResultSet in CachedRowSet to send to another software layer.....a loose the TIME value (HH:mm). I mean, when I got the value fied with CachedRowSet....it return me the yyyy-dd-mm value.....!
So...Somebody know anything ???
Regards.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you calling getDate by any chance? That method doesn't return the time - you should be using getTimestamp.
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeanne

I'm using getString....so I'll try getDate or getTimeStamp....and I'll replay here what happened !!
Thanks for replay.
Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic