本文整理了Java中org.hibernate.type.YesNoType
类的一些代码示例,展示了YesNoType
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesNoType
类的具体详情如下:
包路径:org.hibernate.type.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 );
}
内容来源于网络,如有侵权,请联系作者删除!