`
lan13217
  • 浏览: 482180 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

hibernate boolean maping(0,1;Tt,Ff;Yy,Nn)

 
阅读更多
http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/types.html#types-value-basic

6.1.1.3. java.lang.Boolean (or boolean primitive)

org.hibernate.type.BooleanType
Maps a boolean to a JDBC BIT type

Registered under boolean and java.lang.Boolean in the type registry (see Section 6.5, “Type registry”).

org.hibernate.type.NumericBooleanType
Maps a boolean to a JDBC INTEGER type as 0 = false, 1 = true

Registered under numeric_boolean in the type registry (see Section 6.5, “Type registry”).

org.hibernate.type.YesNoType
Maps a boolean to a JDBC CHAR type as ('N' | 'n') = false, ( 'Y' | 'y' ) = true

Registered under yes_no in the type registry (see Section 6.5, “Type registry”).

org.hibernate.type.TrueFalseType
Maps a boolean to a JDBC CHAR type as ('F' | 'f') = false, ( 'T' | 't' ) = true

Registered under true_false in the type registry (see Section 6.5, “Type registry”).


<class name="xxxx" table="xx_xx_CONFIG">
		<id name="id" type="java.lang.Long">
			<column name="ID" precision="22" />
			<generator class="sequence">
				<param name="sequence">SEQ_MAILTARGET_CONFIG</param>
			</generator>
		</id>
		<property name="sended" type="org.hibernate.type.NumericBooleanType">
			<column name="ISSENDED" />
		</property>
	</class>
分享到:
评论

相关推荐

    Java中Boolean与字符串或者数字1和0的转换实例

    下面小编就为大家带来一篇Java中Boolean与字符串或者数字1和0的转换实例。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    Boolean RT资源包

    Boolean RT资源包,可用于Unity 几何体布尔运算

    Boolean RT.zip

    1- Real-time or per-click Boolean execution. 2- Material, UV and texture preservation. 3- Saving to prefab. 4- Constructive solid Geometry (CSG). 5- Smoothing of Boolean execution to keep smooth frame...

    1、hibernate调用存储过程1

    1、使用hibernate调用不带参数返回值的存储过程方法public Boolean doInHibernate(Session session) t

    第24次课-1 Spring与Hibernate的整合

    第24次课-1 Spring与Hibernate的整合 本节主要内容 24.1 概述 24.2 管理SessionFactory 24.3 Spring对Hibernate的简化 24.1 概述 24.1.1 概述 Spring提供了很多IoC特性的支持,方便处理大部分典型的Hibernate整合...

    JS字符串false转boolean的方法(推荐)

    下面小编就为大家带来一篇JS字符串false转boolean的方法(推荐)。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    Unity 几何体布尔运算BooleanRT

    Unity 几何体布尔运算BooleanRT,Boolean RT.unitypackage,unity3d布尔运算插件。

    boolean_approach

    boolean_approach

    handbook of Boolean Algebras V.1

    The Handbook is divided into two ...part (Volume 1) is a completely self-contained treatment of the fundamentals of the subject, which mathematicians in various fields may find interesting and useful.

    Boolean RT.rar

    BooleanRT实时模型网格布尔运算插件 可以进行实时的模型合并、求差集、求交集等操作。 全网最好用的了,没有第二款。

    Hibernate注释大全收藏

    Hibernate注释大全收藏 声明实体Bean @Entity public class Flight implements Serializable { Long id; @Id public Long getId() { return id; } public void setId(Long id) { this.id = id; } } @Entity ...

    Screen Space Boolean Subtract Shader

    Screen Space Boolean Subtract Shader 动态计算模型布尔值,源代码

    The Complexity of Boolean Functions

    The of Boolean Functions

    BMS boolean

    saliency detection a boolean map approach

    Objective-C Boolean 变量

    Objective-C Boolean 变量 具体内容,请参考苹果开发者 Mike 的博文http://blog.sina.com.cn/s/blog_7aa21f320100r6ux.html

    Boolean_unity.zip

    用作unity3D几何体的布尔运算包用作unity3D几何体的布尔运算包用作unity3D几何体的布尔运算包

    cxf(jax-ws)+spring+hibernate整合包

    wsn-core-2.7.6.jar,cxf-xjc-boolean-2.6.2.jar,cxf-xjc-bug671-2.6.2.jar,cxf-xjc-dv-2.6.2.jar,cxf-xjc-runtime-2.6.2.jar,cxf-xjc-ts-2.6.2.jar,dom4j-1.6.1.jar,ehcache-1.2.3.jar,ehcache-core-2.5.1.jar,ejb3-...

    Boolean.Functions.and.Computation.Models,.Clote,.Kranakis,.Springer,.2002

    This textbook presents a survey of research on boolean functions, circuits, parallel computation models, function algebras, and proof systems. Its main aim is to elucidate the structure of "fast" ...

Global site tag (gtag.js) - Google Analytics