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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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:
Here’s some more documentation that might help:
To answer you’re question, here’s what the JDO 3.0 Specification says, Section 18.4, Element column: