May 2004
Intermediate to advanced
192 pages
4h 46m
English
The following table shows each of the type classes in the net.sf. hibernate.types package, along with the type name you would use for it in a mapping document, the SQL type used in columns storing mapped values, and any relevant comments about its purpose. In many cases, more detailed discussion can be found earlier. To save space, the "Type" which appears at the end of each class name has been removed, except in the case of the Type interface implemented by all the others.
| Type class | Type name | SQL type | Notes |
|---|---|---|---|
| Abstract-Component | N/A | N/A | Abstract ancestor of Component, DynaBean, and Object types |
| Abstract | N/A | N/A | Abstract skeleton used by the built-in types |
| Array | N/A | N/A | Maps a Java array as a Persistent-Collection |
| Association | N/A | N/A | Interface used by all associations between entities |
| Bag | N/A | N/A | Maps collections with bag semantics |
| BigDecimal | big_decimal | NUMERIC | In Oracle, SQL type is NUMBER |
| Binary | binary | VARBINARY | Basic type for byte arrays |
| Blob | blob | BLOB | Not all drivers support this |
| Boolean | boolean | BIT | A basic type |
| Byte | byte | TINYINT | A basic type |
| CalendarDate | calendar_ date | DATE | A basic type |
| Calendar | calendar | TIMESTAMP | A basic type |
| CharBoolean | N/A | CHAR | Abstract skeleton used to implement yes_no and true_false types |
| Character | character | CHAR | A basic and primitive type |
| Class | class | VARCHAR or VARCHAR2 | Basic type that stores a class' name |
| Clob | clob | CLOB | Not all drivers support this |
| Component | N/A | N/A | Maps the properties of a contained value class on to a group of columns |
| Composite-Custom | N/A | N/A | Adapts CompositeUserType implementations to the |