use of org.nutz.dao.test.meta.other.UpdateClobBlobBean in project nutz by nutzam.
the class UpdateTest method test_update_clob.
@Test
public void test_update_clob() throws SerialException, SQLException {
dao.create(UpdateClobBlobBean.class, true);
UpdateClobBlobBean bean = new UpdateClobBlobBean();
bean.setManytext(new SerialClob(Strings.dup('8', 4097).toCharArray()));
bean.setManybinary(new SerialBlob(Strings.dup('9', 4097).getBytes()));
dao.insert(bean);
bean.setManytext(new SerialClob(Strings.dup('7', 4097).toCharArray()));
bean.setManybinary(new SerialBlob(Strings.dup('6', 4097).getBytes()));
dao.update(bean);
}
Aggregations