This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes saving clob data through hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "saving clob data through hibernate" Watch "saving clob data through hibernate" New topic

saving clob data through hibernate

deepak adlakha
Ranch Hand

Joined: Jul 27, 2001
Posts: 325

I have strange problem. I have one table with two columns as clob and inserting the data through hibernate. Records gets entered in the table through unit test. but in IDE, at the end of my test i get this error. Can anyone tell me why this is coming ? error says lack of i need to provide any special priveligies for this table ???

aused by: java.sql.BatchUpdateException: ORA-01031: insufficient privileges

at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(
at org.hibernate.jdbc.AbstractBatcher.executeBatch(
... 49 more

Sample code is as follows :-


// Set the request template
Clob requestClob = employeeService.getRequestTemplate();
Writer requestDataWriter = requestClob.setCharacterStream(1);


// Set the response template
Clob responseClob = employeeService.getResponseTemplate();
Writer responseDataWriter = responseClob.setCharacterStream(1);


.................... two more objects save through hibernate

return employeeService;
catch (Throwable t)
return null;

deepak adlakha
Ranch Hand

Joined: Jul 27, 2001
Posts: 325
This is resolved. I firgured it of the other table, i have to provide access. So this issues is resolved and closed.

jQuery in Action, 2nd edition
subject: saving clob data through hibernate