i load a simpleBean, without modifying it, pass it to simpleBeanManager.save when an exception occur.
_sql.toString() = update simple set where simplekey = ?
i think its because of the invalid sql statement that cause the exception. is this happening with other database too?
my workaround is to modify xManagerTemplate.vm
/* return object since no change */
if (!useComma) {
return pObject;
}
/* error here when creating preparestatement */
ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i load a simpleBean, without modifying it, pass it to simpleBeanManager.save when an exception occur.
_sql.toString() = update simple set where simplekey = ?
i think its because of the invalid sql statement that cause the exception. is this happening with other database too?
my workaround is to modify xManagerTemplate.vm
/* return object since no change */
if (!useComma) {
return pObject;
}
/* error here when creating preparestatement */
ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
Hi,
This is not a firebird thing and sure it should be enhanced.
Best would be to rely on isModified() xBean method.
We will add that in next release.
Thanks!
Nicolas.