Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[@Lob] [String] [PostgreSQL] Issue with Large Objects in auto-commit mode #8146
Overview of the issue
When using PostgreSQL (at least), creating a String field with the annotation
Example of Java code:
@Lob @Column(name = "description") private String description;
Complete stack trace
Motivation for or Use Case
The entity can not be retrieved for database, so can not be serialized and sent to the frontend.
I noticed this bug while working on the protractor delete tests PR:
Reproduce the error
I noticed this bug with the
All the steps if needed (in
cd travis ./build-samples.sh generate ngx-psql-es-noi18n cd samples/ngx-psql-es-noi18n-sample docker-compose -f src/main/docker/postgresql.yml up -d docker-compose -f src/main/docker/elasticsearch.yml up -d ./mvnw
Suggest a Fix
No idea for now. Maybe add
Maybe the title is wrong, it can be changed.
JHipster configuration, a
referenced this issue
Aug 22, 2018
Great catch @hdurix - then we should never be in auto commit mode, but for that specific "getAll" request we indeed are...
There are 3 ways to solve this:
And I just came across this great blog: https://vladmihalcea.com/why-you-should-always-use-hibernate-connection-provider_disables_autocommit-for-resource-local-jpa-transactions/
-> @hdurix could you test this last solution? As you can read from the blog, there's also a performance boost to gain here, so that would just be perfect.