Hibernate ing type table

Source: Internet
Author: User
Hibernate ing type table
Java type  Hibernate ing type SQL type
Java. Math. bigdecimal Big_decimal Numeric
Byte [] Binary Varbinary (BLOB)
Boolean (Java. Lang. Boolean) Boolean Bit
Byte (Java. Lang. byte) Byte Tinyint
Java. util. Calendar Calendar Timestamp
Java. SQL. clob Clob Clob
Java. util. Date or Java. SQL. Date Date Date
Double (Java. Lang. Double) Double Double
Float (Java. Lang. Float) Float Float
INT (Java. Lang. integer) Integer Integer
Java. util. Local Local Varchar
Long (Java. Lang. Long) Long Bigint
An instance of Java. Io. serializable Serializable Varbinary (or blob)
Java. Lang. String String Varchar
Java. Lang. String Text Clob
Java. util. Date or Java. SQL. Timestamp Time Timestamp

Copy the table from the book for future reference.

Considering that the operations on BLOB fields are too complicated, a transformation technique is that object classes use the byte [] type, Hibernate type uses binary, and database uses blob. This can simplify some operations.

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.