Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9293923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T21:15:12+00:00 2026-06-18T21:15:12+00:00

this is the document link: Mapping SQL and Java Types let’s see 8.9.3 JDBC

  • 0

this is the document link: “Mapping SQL and Java Types”

let’s see 8.9.3 JDBC Types Mapped to Java Object Types
at row: TIMESTAMP – java.sql.Timestamp

but when I use getObject() with oracle database on a TIMESTAMP column, the return type is oracle.sql.TIMESTAMP, it can not been cast to java.sql.Timestamp

I know that I can use getTimestamp() but I need getObject() for handling any resultset regardless of types.

Is the document wrong or me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T21:15:13+00:00Added an answer on June 18, 2026 at 9:15 pm

    The document is correct, the Oracle JDBC driver is the problem.

    There’s 2 possible solutions:

    First one, use getObject:

    oracle.sql.TIMESTAMP ts = (oracle.sql.TIMESTAMP) res.getObject("last_update");
    agent.setLastUpdate(new Date(ts.dateValue().getTime()));
    

    The second is to add a VM argument to your app:

    -Doracle.jdbc.J2EE13Compliant=true
    

    This will make the driver return java.sql.Timestamp instead of oracle.sql.TIMESTAMP.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have something like this situation: $(document).on('click', 'a[data-link]', function () { var $this
I don't understand why the link (55) in the top-right corner of this document
i am trying like this: $(document).ready(function(){ $('#muestraMotor').bind('mousedown',function(){ var cssLink = document.createElement(link); cssLink.href = ../estilo/css/datepicker.css;
Hi I have HTML table of documents, each row is a document has link
Is the information in this link accurate? https://developer.mozilla.org/en-US/docs/DOM/Selection According to this document: anchorOffset: Returns
i have problem use link_to_remote link_to_remote document example say link_to_remote Delete this post, :update
<script type=text/javascript> $(document).ready(function() { $(body).css(display, none); $(body).fadeIn(slow); $(a.link).click(function(event){ event.preventDefault(); linkLocation = this.href; $(body).fadeOut(slow, redirectPage);
this document states that, in order to cooperates with codes written in a MRR(manual
I am going through this document and this is what I gathered. <Esc> Escape
How can I convert this document: <Root> <!-- yes, I know I don't need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.