Skip to content

Tag: oracle

Insert Null Struct using EclipseLink JPA

I have an Oracle table with an SDO_GEOMETRY column and I am trying to use EclipseLink JPA2 2.6.1 for persistence. My entity class uses a JTS Geometry for geometry objects and I have written a AttributeConverter to convert from a SDO_GEOMETRY to a JTS Geometry. This works well and I can read and write the geom…

Fetching Oracle DB LONG type through jdbc works very slow

This happens only when the statement return LONG column. Even if i don’t do anything with it such like rs.getString, just execute. sql1: That was: 7593 ms sql2: That was: 530 ms As you can see it’s not about volume of data. When i use OracleConnection:OracleStatement:OracleCachedResultSet result i…

MyBatis Batch Insert/Update For Oracle

I’ve recently started learning to use myBatis.I am now facing such a scenario, I need to constantly fetch a new list of Objects through WebService, then for this list, I need to insert/update each object into the oracle DB table through myBatis. The tricky part is, I cannot simply do a batch insert ever…

Invalid operation for read only resultset: updateString

Following is my code(Re-constructed) which select & update STATUS field depending upon the conditions. (Using Servlets, Oracle as Backend and JDBC driver) I am getting the error while updating: Any suggestions will be appreciated. Update 1: The same code was working when select statement was selecting dat…