A large object refers to the entity property that is modified by @Lob. It may be persisted in several records.
However, in database management system, auto-commit means that each query or persistence is considered as one transaction, and implemented immediately. So, it seems that this setup conflicts a lob property, which may need several statements to persist it.
It may need a transaction to wrap several statements together, between BEGIN and COMMIT. Turning off the auto-commit mode could be a solution, however, using @Transactional to wrap statements should be a fundamental solution.
I solved the error by this way.
No comments:
Post a Comment