Skip to Main Content
Hibernate: A Developer's Notebook
book

Hibernate: A Developer's Notebook

by James Elliott
May 2004
Intermediate to advanced content levelIntermediate to advanced
192 pages
4h 46m
English
O'Reilly Media, Inc.
Content preview from Hibernate: A Developer's Notebook

A.5. All Types

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 classType nameSQL typeNotes
Abstract-ComponentN/AN/AAbstract ancestor of Component, DynaBean, and Object types
AbstractN/AN/AAbstract skeleton used by the built-in types
ArrayN/AN/AMaps a Java array as a Persistent-Collection
AssociationN/AN/AInterface used by all associations between entities
BagN/AN/AMaps collections with bag semantics
BigDecimalbig_decimalNUMERICIn Oracle, SQL type is NUMBER
BinarybinaryVARBINARYBasic type for byte arrays
BlobblobBLOBNot all drivers support this
BooleanbooleanBITA basic type
BytebyteTINYINTA basic type
CalendarDatecalendar_ dateDATEA basic type
CalendarcalendarTIMESTAMPA basic type
CharBooleanN/ACHARAbstract skeleton used to implement yes_no and true_false types
CharactercharacterCHARA basic and primitive type
ClassclassVARCHAR or VARCHAR2Basic type that stores a class' name
ClobclobCLOBNot all drivers support this
ComponentN/AN/AMaps the properties of a contained value class on to a group of columns
Composite-CustomN/AN/AAdapts CompositeUserType implementations to the
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Getting Started with Hibernate 3

Getting Started with Hibernate 3

James Elliott

Publisher Resources

ISBN: 0596006969Supplemental ContentCatalog PageErrata