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 8177595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:33:02+00:00 2026-06-06T23:33:02+00:00

Would someone please explain the difference between the sqlType and jdbcType of the the

  • 0

Would someone please explain the difference between the sqlType and jdbcType of the the @Column annotation ?

http://www.datanucleus.org/products/datanucleus/jdo/annotations.html#Column

  • 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-06T23:33:03+00:00Added an answer on June 6, 2026 at 11:33 pm

    From the document you cited:

    http://www.datanucleus.org/products/datanucleus/jdo/annotations.html#Column

    • jdbcType String ORM : JDBC Type to use for persisting into this column

    • sqlType String ORM : SQL Type to use for persisting into this column

    In general, JDBC should provide a mapping to the underlying SQL type, and you should code your JDO implementation to the exposed JDBC type.

    This reference gives one example of where the distinction could be significant:

    • http://osdir.com/ml/apache.db.jdo.devel/2005-07/msg00139.html

    Here’s some more documentation that might help:

    • http://java.sun.com/developer/technicalArticles/J2SE/jdo/

    Q: So JDBC types are like standard data types while SQL types are
    types specific to each datastore?

    To answer you’re question, here’s what the JDO 3.0 Specification says, Section 18.4, Element column:

    http://download.oracle.com/otn-pub/jcp/jdo-3.0-mrel3-eval-oth-JSpec/jdo-3_0-mrel3-spec.pdf

    The sql-type attribute declares the type of the column in the
    database. This type is database-specific and should only be used where
    the user needs more explicit control over the mapping. Normally, the
    combination of jdbc-type. length, and scale are sufficient for the JDO
    implementation to calculate the sql-type.

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

Sidebar

Related Questions

Would someone please explain the difference? Are these the same product, and if not
Could someone please explain when would I want to use delegation instead of inheritance?
Can someone please explain me why would a UDP Server not need to use
I would like to access a MySQL database using PHP. Can someone please explain
private final String[] okFileExtensions = new String[] { csv }; Would someone please explain
I googled and got only a few articles about MEF. Would someone please explain
Can someone please explain to me how you would create a star schema starting
would someone please write this code: this.Loaded += (s, e) => this.loaded = true;
Can someone please shed some light on how I would get this to work:
Can someone please point me out a hash function (preferably an implementation) which would

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.