Hibernate3.2 (8): the data type in hibernate used by the xxx ing file XXX. HBM. xml

Source: Internet
Author: User

① Byte, short, integer, long; float, double; character; Boolean, yes_no, true_false

These hibernate types correspond to the original Java type or their encapsulation class to conform to the SQL field type. Boolean, yes_no, and true_false are both Boolean OR Boolean statements in Java.

② String

Ing from Java. Lang. string to varchar (or varchar2 of Oracle.

③ Date, time, timestamp

Ing from Java. util. date to SQL date, time, and timestamp.

④ Big_decimal, big_integer

Ing from Java. Math. bigdecimal and Java. amth. biginteger to numeric (or Oracle number type.

⑤ Binary

Map the byte array to the corresponding SQL binary type.

⑥ Text

Map long Java strings to the SQL clob or text type.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.