Back to Hibernate Tutorials Page
This section gives you description of all the Types that are supported by Hibernate. A Hibernate Type is used to map a Java property type to a JDBC type or types.
The following tables to represents all Hibernate types:
| Interfaces and Descriptions: | |
| AbstractComponentType | The AbstractComponentType enables other Component-like types to hold collections and have cascades, etc. |
| AssociationType | This interface used to represent all associations between entities. |
| DiscriminatorType | This interface used to discriminator properties with the help of right mapped subclass. |
| IdentifierType | This interface has All identifiers of entities. |
| LiteralType | This is a maker interface that which store SQL literals. |
| Type | This interface describes mapping between the Java and JDBC datatypes |
| VersionType | This interface used for version stamping. |
| Classes and Descriptions: | |
| AbstractBynaryType | The stream of byte bounded into a VAQRBINARY. |
| AbstractCharArrayType | The stream of char bounded into a VARCHAR. |
| AbstractType | This is a superclass that can be used for creating type hierarchy. |
| AdaptedImmutableType | |
| AnyType | It defines 'any' mappings and deprecated 'object' types. |
| AnyType.ObjectTypeCacheEntry | |
| ArrayType | It represents collection of data into a similar types. |
| BagType | |
| BigDecimaType | This class used to mapping between SQL NUMERIC and java.math.BigDecimal. |
| BigIntegerType | This class used to mapping between SQL NUMERIC and java.math.BigInteger. |
| BinaryType | It used to mapping between a SQL VARBINARY and a Java byte[]. |
| BlobType | It used to mapping between a SQL BLOB and java.sql.Blob. |
| BooleanType | This class maps between SQL BIT and Java Boolean. |
| ByteType | This class maps between SQL TINYINT and Java Byte. |
| CalendarDateType | This class represents a data and mapping into a Calendar object. |
| CalendarType | It also represents a datetime mapping into a Calendar object. |
| CharacterArrayType | It is a collection of VARCHAR like: Character[]. |
| CharacterType | This class mapping between a SQL CHAR and a Java Character. |
| CharArrayType | It is a collection of VARCHAR like: char[]. |
| CharBooleanType | This is a superclass that can be mapping between SQL CHAR and Java boolean. |
| ClassType | This class mapping between SQL VARCHAR and Java class. |
| ClobType | This class mapping between SQL CLOB and java.sql.Clob. |
| CollectionType | It handles the Hibernate PersistentCollections. |
| ComponentType | This class mapping all components. |
| CompositeCustomType | It adjusts CompositeUserType to Type interface.; |
| CurrencyType | It is used to mapping a SQL VARCHAR into a java.util.Currency. |
| CustomCollectionType | This class is created by users and implement the PersistentCollection. |
| CustomType | It adjusts the user type to generic type interface and changes the internal type contracts. |
| DateType | This class mapping between an SQL DATE to Java Date. |
| DbTimestampType | |
| DoubleType | It can be used to mapping between SQL DOUBLE to Java Double. |
| EmbeddedComponentType | |
| EntityType | It communicates an entity class. |
| FloatType | It links SQL FLOAT to Java Float. |
| ForeignKeyDirection | This class shows directionality of the foreign key constraint. |
| IdentifierBagType | |
| ImmutableType | This is a superclass of the nullable immutable type. |
| IntegerType | This class links between the SQL INT to Java Integer. |
| ListType | |
| LocaleType | It links into an SQL VARCHAR and a Java Locale. |
| LongType | This class links into an SQL BIGINT and a Java Long. |
| ManyToOneType | It associates many-to-one entity. |
| MapType | |
| MetaType | |
| MutableType | This is a superclass of mutable nullable types. |
| NullableType | This is a supperclass of single-column nullable types. |
| OneToOneType | It associates one-to-one entity. |
| OrderedMapType | |
| OrderedSetType | |
| PrimitiveType | This is the superclass of primitive or primitive wrappers types. |
| SerializableType | This class maps an SQL VARBINARY to a serializable Java object. |
| SetType | |
| ShortType | It communicates between an SQL SMALLINT and Java Short. |
| SortedMapType | |
| SortedSetType | |
| SpacialOneToOneType | |
| StringType | It communicates between an SQL VARCHAR and Java String. |
| TextType | This class links between an SQL CLOB and Java String. |
| TimestampType | This class mapping between an SQL TIMESTAMP and Java java.util.Date or java.sql.Timestamp. |
| TimeType | It maps an SQL TIME to Java java.util.Date or java.sql.Time. |
| TimeZoneType | It communicates an SQL VARCHAR to Java java.util.TimeZone. |
| TrueFalseType | This class maps an SQL CHAR to a Java Boolean. |
| TypeFactory | This class used internally and holds an instance of Type. |
| WrapperBinaryType | |
| YesNoType | It maps between an SQL CHAR to Java Boolean. |
| Exceptions and Descriptions: | |
| SerializationException | This exception occurs when the property could not be serialized or deserialized. |
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
Ask Questions? Discuss: Hibernate Types View All Comments
Post your Comment