Spring JPA not saving to Postgres DB
I’m trying to setup a system to pull data from a Neo4J database and push it into a Postgres database. The connection to the Neo4J database is longstanding, and the Postgres connection is new. I’m able to retrieve data from the Postgres databsae just fine, however when calling save
or saveAll
, I see no updates actually pushed. My (very simple) service class is below:
Spring JPA Exception Handling – DataIntegrityViolationException Not Thrown
I’m currently encountering an issue with Spring JPA, where it fails to immediately throw an exception upon encountering a unique constraint violation in PostgreSQL.