标签:java sub ring ber get hiberna str private 转换
1、String类转换Clob类型
private Clob clobStr;
private String Str="测试值";
clobStr = Hibernate.createClob(obj.toJSONString());
2、Clob类型转换String类型
private Clob clobStr;
private String Str;
Str = clobStr.getSubString(1, (int) clobStr.length());
标签:java sub ring ber get hiberna str private 转换
原文地址:http://www.cnblogs.com/jassy/p/6840295.html