org.hibernate.type.YesNoType类的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中org.hibernate.type.YesNoType类的一些代码示例,展示了YesNoType类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesNoType类的具体详情如下:
包路径:org.hibernate.type.YesNoType
类名称:YesNoType

YesNoType介绍

[英]A type that maps between java.sql.Types#CHAR and Boolean (using 'Y' and 'N')
[中]在java之间映射的类型。sql。类型#CHAR和Boolean(使用'Y'和'N')

代码示例

代码示例来源:origin: hibernate/hibernate-orm

@Override
public Boolean stringToObject(String xml) throws Exception {
  return fromString( xml );
}
@Override

代码示例来源:origin: hibernate/hibernate-ogm

public YesNoType() {
  super( CharMappedGridTypeDescriptor.INSTANCE, org.hibernate.type.YesNoType.INSTANCE.getJavaTypeDescriptor() );
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public static final NullableType YES_NO = new YesNoType();

代码示例来源:origin: org.hibernate.ogm/hibernate-ogm-cassandra

public CassandraYesNoType() {
  super( new TranslatingGridTypeDescriptor( String.class ), org.hibernate.type.YesNoType.INSTANCE.getJavaTypeDescriptor() );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

public Boolean stringToObject(String xml) throws Exception {
  return fromString( xml );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

public Boolean stringToObject(String xml) throws Exception {
  return fromString( xml );
}

相关文章