H2
Data type |
RapidClipse default mapping |
Generated Javacode (example) |
CHARACTER(n) A Unicode string. This type is supported for compatibility with other databases and older applications. The difference to The maximum precision is The whole text is kept in memory when using this data type. |
java |
java
java |
CHAR(n) A Unicode string. This type is supported for compatibility with other databases and older applications. The difference to The maximum precision is The whole text is kept in memory when using this data type. |
java |
java
java |
NCHAR(n) A Unicode string. This type is supported for compatibility with other databases and older applications. The difference to The maximum precision is The whole text is kept in memory when using this data type. |
java |
java
java |
INT Possible values: -2147483648 to 2147483647. |
Hibernate default mapping |
java
java |
INTEGER Possible values: -2147483648 to 2147483647. |
Hibernate default mapping |
java
java |
MEDIUMINT Possible values: -2147483648 to 2147483647. |
Hibernate default mapping |
java
java |
INT4 Possible values: -2147483648 to 2147483647. |
Hibernate default mapping |
java
java |
SIGNED Possible values: -2147483648 to 2147483647. |
Hibernate default mapping |
java
java |
BOOLEAN Possible values: |
Hibernate default mapping |
java
java |
BIT Possible values: |
Hibernate default mapping |
java
java |
BOOL Possible values: |
Hibernate default mapping |
java
java |
TINYINT Possible values: -128 to 127. |
Hibernate default mapping |
java
java |
SMALLINT Possible values: -32768 to 32767. |
Hibernate default mapping |
java
java |
INT2 Possible values: -32768 to 32767. |
Hibernate default mapping |
java
java |
YEAR Possible values: -32768 to 32767. |
Hibernate default mapping |
java
java |
BIGINT Possible values: -9223372036854775808 to 9223372036854775807. |
Hibernate default mapping |
java
java |
INT8 Possible values: -9223372036854775808 to 9223372036854775807. |
Hibernate default mapping |
java
java |
IDENTITY Auto-Increment value. Possible values: -9223372036854775808 to 9223372036854775807. Used values are never re-used, even when the transaction is rolled back. |
Hibernate default mapping |
java
java |
DECIMAL Data type with fixed precision and scale. This data type is recommended for storing currency values. |
Hibernate default mapping |
java
java
java
java |
NUMBER Data type with fixed precision and scale. This data type is recommended for storing currency values. |
Hibernate default mapping |
java
java |
DEC Data type with fixed precision and scale. This data type is recommended for storing currency values. |
Hibernate default mapping |
java
java |
NUMERIC Data type with fixed precision and scale. This data type is recommended for storing currency values. |
Hibernate default mapping |
java
java |
DOUBLE A floating point number. Should not be used to represent currency values, because of rounding problems. |
Hibernate default mapping |
java
java |
FLOAT A floating point number. Should not be used to represent currency values, because of rounding problems. |
Hibernate default mapping |
java
java |
FLOAT8 A floating point number. Should not be used to represent currency values, because of rounding problems. |
Hibernate default mapping |
java
java |
REAL A single precision floating point number. Should not be used to represent currency values, because of rounding problems. |
java |
java
java |
FLOAT4 A single precision floating point number. Should not be used to represent currency values, because of rounding problems. |
java |
java
java |
TIME The time data type. The format is hh:mm:ss. |
Hibernate default mapping |
java
java |
DATE The date data type. The format is yyyy- |
Hibernate default mapping |
java
java |
TIMESTAMP The timestamp data type. The format is yyyy- |
Hibernate default mapping |
java
java |
DATETIME The timestamp data type. The format is yyyy- |
Hibernate default mapping |
java
java |
SMALLDATETIME The timestamp data type. The format is yyyy- |
Hibernate default mapping |
java
java |
BINARY Represents a byte array. For very long arrays, use BLOB. The maximum size is 2 GB, but the whole object is kept in memory when using this data type. The precision is a size constraint; only the actual data is persisted. For large text data BLOB or CLOB should be used. |
Hibernate default mapping |
java
java |
VARBINARY Represents a byte array. For very long arrays, use BLOB. The maximum size is 2 GB, but the whole object is kept in memory when using this data type. The precision is a size constraint; only the actual data is persisted. For large text data BLOB or CLOB should be used. |
Hibernate default mapping |
java
java |
LONGVARBINARY Represents a byte array. For very long arrays, use BLOB. The maximum size is 2 GB, but the whole object is kept in memory when using this data type. The precision is a size constraint; only the actual data is persisted. For large text data BLOB or CLOB should be used. |
Hibernate default mapping |
java
java |
RAW Represents a byte array. For very long arrays, use BLOB. The maximum size is 2 GB, but the whole object is kept in memory when using this data type. The precision is a size constraint; only the actual data is persisted. For large text data BLOB or CLOB should be used. |
Hibernate default mapping |
java
java |
BYTEA Represents a byte array. For very long arrays, use BLOB. The maximum size is 2 GB, but the whole object is kept in memory when using this data type. The precision is a size constraint; only the actual data is persisted. For large text data BLOB or CLOB should be used. |
Hibernate default mapping |
java
java |
VARCHAR A Unicode string. Use two single quotes ('') to create a quote.The maximum precision is Integer.MAX_VALUE. The precision is a size constraint; only the actual data is persisted. The whole text is loaded into memory when using this data type. For large text data CLOB should be used; see there for details. |
Hibernate default mapping |
java
java |
LONGVARCHAR A Unicode string. Use two single quotes ('') to create a quote.The maximum precision is Integer.MAX_VALUE. The precision is a size constraint; only the actual data is persisted. The whole text is loaded into memory when using this data type. For large text data CLOB should be used; see there for details. |
Hibernate default mapping |
java
java |
VARCHAR2 A Unicode string. Use two single quotes ('') to create a quote.The maximum precision is Integer.MAX_VALUE. The precision is a size constraint; only the actual data is persisted. The whole text is loaded into memory when using this data type. For large text data CLOB should be used; see there for details. |
Hibernate default mapping |
java
java |
NVARCHAR A Unicode string. Use two single quotes ('') to create a quote.The maximum precision is Integer.MAX_VALUE. The precision is a size constraint; only the actual data is persisted. The whole text is loaded into memory when using this data type. For large text data CLOB should be used; see there for details. |
Hibernate default mapping |
java
java |
NVARCHAR2 A Unicode string. Use two single quotes ('') to create a quote.The maximum precision is Integer.MAX_VALUE. The precision is a size constraint; only the actual data is persisted. The whole text is loaded into memory when using this data type. For large text data CLOB should be used; see there for details. |
Hibernate default mapping |
java
java |
VARCHARCASESENSITIVE A Unicode string. Use two single quotes ('') to create a quote.The maximum precision is Integer.MAX_VALUE. The precision is a size constraint; only the actual data is persisted. The whole text is loaded into memory when using this data type. For large text data CLOB should be used; see there for details. |
Hibernate default mapping |
java
java |
VARCHARIGNORECASE Same as VARCHAR, but not case-sensitive when comparing. Stored in mixed case.The maximum precision is Integer.MAX_VALUE. The precision is a size constraint; only the actual data is persisted.The whole text is loaded into memory when using this data type. For large text data CLOB should be used; see there for details. |
Hibernate default mapping |
java
java |
BLOB Like BINARY, but intended for very large values such as files or images. Unlike when using BINARY, large objects are not kept fully in-memory. Use PreparedStatement.setBinaryStream to store values.See also CLOB and Advanced / Large Objects. |
java
java |
java
java |
TINYBLOB Like BINARY, but intended for very large values such as files or images. Unlike when using BINARY, large objects are not kept fully in-memory. Use PreparedStatement.setBinaryStream to store values.See also CLOB and Advanced / Large Objects. |
java
java |
java
java |
MEDIUMBLOB Like BINARY, but intended for very large values such as files or images. Unlike when using BINARY, large objects are not kept fully in-memory. Use PreparedStatement.setBinaryStream to store values.See also CLOB and Advanced / Large Objects. |
java
java |
java
java |
LONGBLOB Like BINARY, but intended for very large values such as files or images. Unlike when using BINARY, large objects are not kept fully in-memory. Use PreparedStatement.setBinaryStream to store values.See also CLOB and Advanced / Large Objects. |
java
java |
java
java |
IMAGE Like BINARY, but intended for very large values such as files or images. Unlike when using BINARY, large objects are not kept fully in-memory. Use PreparedStatement.setBinaryStream to store values.See also CLOB and Advanced / Large Objects. |
java
java |
java
java |
OID Like BINARY, but intended for very large values such as files or images. Unlike when using BINARY, large objects are not kept fully in-memory. Use PreparedStatement.setBinaryStream to store values.See also CLOB and Advanced / Large Objects. |
java
java |
java
java |
CLOB CLOB is like VARCHAR, but intended for very large values. Unlike when using VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed. CLOB should be used for documents and texts with arbitrary size such as XML or HTML documents, text files, or memo fields of unlimited size. Use PreparedStatment.setCharacterStream to store values. VARCHAR should be used for text with relatively short average size (for example shorter than 200 characters). Short CLOB values are stored inline, but there is an overhead compared to VARCHAR. |
java
java |
java
java |
TINYTEXT CLOB is like VARCHAR, but intended for very large values. Unlike when using VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed. CLOB should be used for documents and texts with arbitrary size such as XML or HTML documents, text files, or memo fields of unlimited size. Use PreparedStatment.setCharacterStream to store values. VARCHAR should be used for text with relatively short average size (for example shorter than 200 characters). Short CLOB values are stored inline, but there is an overhead compared to VARCHAR. |
java
java |
java
java |
TEXT CLOB is like VARCHAR, but intended for very large values. Unlike when using VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed. CLOB should be used for documents and texts with arbitrary size such as XML or HTML documents, text files, or memo fields of unlimited size. Use PreparedStatment.setCharacterStream to store values. VARCHAR should be used for text with relatively short average size (for example shorter than 200 characters). Short CLOB values are stored inline, but there is an overhead compared to VARCHAR. |
java
java |
java
java |
CLOB is like VARCHAR, but intended for very large values. Unlike when using VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed. CLOB should be used for documents and texts with arbitrary size such as XML or HTML documents, text files, or memo fields of unlimited size. Use PreparedStatment.setCharacterStream to store values. VARCHAR should be used for text with relatively short average size (for example shorter than 200 characters). Short CLOB values are stored inline, but there is an overhead compared to VARCHAR. |
java
java |
java
java |
LONG TEXT CLOB is like VARCHAR, but intended for very large values. Unlike when using VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed. CLOB should be used for documents and texts with arbitrary size such as XML or HTML documents, text files, or memo fields of unlimited size. Use PreparedStatment.setCharacterStream to store values. VARCHAR should be used for text with relatively short average size (for example shorter than 200 characters). Short CLOB values are stored inline, but there is an overhead compared to VARCHAR. |
java
java |
java
java |
NTEXT CLOB is like VARCHAR, but intended for very large values. Unlike when using VARCHAR, large CLOB objects are not kept fully in-memory; instead, they are streamed. CLOB should be used for documents and texts with arbitrary size such as XML or HTML documents, text files, or memo fields of unlimited size. Use PreparedStatment.setCharacterStream to store values. VARCHAR should be used for text with relatively short average size (for example shorter than 200 characters). Short CLOB values are stored inline, but there is an overhead compared to VARCHAR. |
java
java |
java
java |
NCLOB CLOB is like VARCHAR, but intended for very large values. Unlike when using VARCHAR, large CLOB are not kept fully in-memory; instead, they are streamed. CLOB should be used for documents and texts with arbitrary size such as XML or HTML documents, text files, or memo fields of unlimited size. Use PreparedStatment.setCharacterStream to store values. VARCHAR should be used for text with relatively short average size (for example shorter than 200 characters). Short CLOB values are stored inline, but there is an overhead compared to VARCHAR. |
java
java |
java
java |