[原创]Hibernate 类型 Java 类型 映射表

Hibernate 类型 Java 类型 映射表

 

 

Class Summary
AbstractBynaryType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractCharArrayType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractLobType 
AbstractLongBinaryType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractLongStringType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
AbstractTypeAbstract superclass of the built in Type hierarchy.
AdaptedImmutableTypeOptimize a mutable type, if the user promises not to mutable the instances.
AnyTypeHandles "any" mappings and the old deprecated "object" type
AnyType.ObjectTypeCacheEntry 
ArrayTypeA type for persistent arrays.
BagType 
BigDecimalType big_decimal: A type that maps an SQL NUMERIC to a java.math.BigDecimal
BigIntegerType big_integer: A type that maps an SQL NUMERIC to a java.math.BigInteger
BinaryType binary: A type that maps an SQL VARBINARY to a Java byte[].
BlobType blob: A type that maps an SQL BLOB to a java.sql.Blob.
BooleanType boolean: A type that maps an SQL BIT to a Java Boolean.
ByteArrayBlobType Deprecated. replaced by Hibernate Core's WrappedMaterializedBlobType
ByteType byte: A type that maps an SQL TINYINT to a Java Byte.
CalendarDateType calendar_date: A type mapping for a Calendar object that represents a date.
CalendarType calendar: A type mapping for a Calendar object that represents a datetime.
CharacterArrayClobTypeMap a Character[] to a Clob Experimental
CharacterArrayTypeBridge Character[] and VARCHAR
CharacterType character: A type that maps an SQL CHAR(1) to a Java Character.
CharArrayTypeput char[] into VARCHAR
CharBooleanType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
ClassType class: A type that maps an SQL VARCHAR to a Java Class.
ClobType clob: A type that maps an SQL CLOB to a java.sql.Clob.
CollectionTypeA type that handles Hibernate PersistentCollections (including arrays).
ComponentTypeHandles "component" mappings
CompositeCustomTypeAdapts CompositeUserType to Type interface
CurrencyType currency: A type that maps an SQL VARCHAR to a java.util.Currency
CustomCollectionTypeA custom type for mapping user-written classes that implement PersistentCollection
CustomTypeAdapts UserType to the generic Type interface, in order to isolate user code from changes in the internal Type contracts.
DateType date: A type that maps an SQL DATE to a Java Date.
DbTimestampType dbtimestamp: An extension of TimestampType which maps to the database's current timestamp, rather than the jvm's current timestamp.
DoubleType double: A type that maps an SQL DOUBLE to a Java Double.
EmbeddedComponentType 
EntityTypeBase for types which map associations to persistent entities.
EnumTypeEnum type mapper Try and find the appropriate SQL type depending on column metadata

TODO implements readobject/writeobject to recalculate the enumclasses

FloatType float: A type that maps an SQL FLOAT to a Java Float.
ForeignKeyDirectionRepresents directionality of the foreign key constraint
IdentifierBagType 
ImageType image: A type that maps an SQL LONGVARBINARY to Java byte[].
ImmutableType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
IntegerType integer: A type that maps an SQL INT to a Java Integer.
ListType 
LocaleType locale: A type that maps an SQL VARCHAR to a Java Locale.
LongType long: A type that maps an SQL BIGINT to a Java Long.
ManyToOneTypeA many-to-one association to an entity.
MapType 
MaterializedBlobType materialized_blob: A type that maps an SQL BLOB to Java byte[].
MaterializedClobType materialized_clob: A type that maps an SQL CLOB to a Java String.
MetaType 
MutableType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
NullableType Deprecated. see http://opensource.atlassian.com/projects/hibernate/browse/HHH-5138
NumericBooleanTypeMaps interger database values to boolean java values.
OneToOneTypeA one-to-one association to an entity
OrderedMapTypeA specialization of the map type, with (resultset-based) ordering.
OrderedSetTypeA specialization of the set type, with (resultset-based) ordering.
PrimitiveByteArrayBlobType Deprecated. replaced by Hibernate Core's MaterializedBlobType
PrimitiveCharacterArrayClobTypeMap a char[] to a Clob
PrimitiveTypeSuperclass of primitive / primitive wrapper types.
SerializableToBlobType 
SerializableType serializable: A type that maps an SQL VARBINARY to a serializable Java object.
SetType 
ShortType short: A type that maps an SQL SMALLINT to a Java Short.
SortedMapType 
SortedSetType 
SpecialOneToOneTypeA one-to-one association that maps to specific formula(s) instead of the primary key column of the owning entity.
StringClobType Deprecated. replaced by Hibernate Core's MaterializedClobType
StringType string: A type that maps an SQL VARCHAR to a Java String.
TextType text: A type that maps an SQL LONGVARCHAR to a Java String.
TimestampType timestamp: A type that maps an SQL TIMESTAMP to a Java java.util.Date or java.sql.Timestamp.
TimeType time: A type that maps an SQL TIME to a Java java.util.Date or java.sql.Time.
TimeZoneType timezone: A type that maps an SQL VARCHAR to a java.util.TimeZone
TrueFalseType true_false: A type that maps an SQL CHAR(1) to a Java Boolean.
TypeFactoryUsed internally to obtain instances of Type.
WrappedMaterializedBlobType materialized_blob: A type that maps an SQL BLOB to Java Byte[].
WrapperBinaryType 
YesNoType yes_no: A type that maps an SQL CHAR(1) to a Java Boolean.
 

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值