spring.jpa.hibernate.ddl-auto=update p.s. Not sure that you need this line. spring.jpa.defer-datasource-initialization=true because this is used if we want to have both Hibernate automatic schema generation in conjugation with script-based schema creation and data population, but you said you are not using schema.sql.
I have tried to change the hibernate.dialect value in the hibernate.cfg.xml file to org.hibernate.dialect.PostgreSQL82Dialect (since the value I was using was deprecated). But no luck there. I took the query from the exception and ran it into a SQL console. The query does not work. Although if I remove the parenthesis, it does. hibernate.cfg.xml.
Hi, The connection URL looks ok. - Check that you can connect from the application server to the DB nodes. You need to allow clients from the application server host to connect to the DB nodes.
org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update. I persist my object to database by entiyManager with the following code: public void addPrincipal (Principal u) { trns.start (); trns.getManager ().persist (u); trns.commit (); } trns is an object of transaction class I wrote myself, here's the code for
7thBT0y.