modelmapper-spring-boot-starter | Spring Boot starter that let | Security library
kandi X-RAY | modelmapper-spring-boot-starter Summary
kandi X-RAY | modelmapper-spring-boot-starter Summary
A Spring Boot starter that let you use ModelMapper within your Spring Boot application
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns the modelMapper interface
- Configures the model
- Configures the model mapper instance
- Configures the given ModelMapper
- Registers the converter
- Returns the configuration
- Gets the type map name
modelmapper-spring-boot-starter Key Features
modelmapper-spring-boot-starter Examples and Code Snippets
Community Discussions
Trending Discussions on modelmapper-spring-boot-starter
QUESTION
I have a Spring boot application that has an Entity with an uniqueness constraint on a field.
im running spring-boot, spring-data-neo4j, neo4j-ogm, bolt-driver and the neo4j 3.2 docker image.
When i run my IT tests, i first persist some data, then i try to persist the same data to get the constraint to trigger.
The uniqueness constraint kicks in as expected in and a ClientException is thrown. This is caught and a proper exception is returned to the client.
Then in the following test i just try to save some data and suddenly the server just freezes when it runs the save() in the GraphRepository.
So my question is why does neo4j completly freeze in my case in all following transactions after a ClientException has been thrown due to a uniqueness constraint has kicked in. Logs say nothing, neo4j debug.log says nothing.
If i run each test separate, they both pass. Run together, it freezes neo4j in the test after the constaint has been tested.
pom.xml
...ANSWER
Answered 2017-May-30 at 17:13After getting help on the neo4j-user slack the problem was that the drivers had problems closing the sessions when the transaction was closed.
This got fixed in version 2.1.3 of the bolt-driver in the neo4j-ogm.
So bumping the ogm version from 2.1.2 -> 2.1.3 resolved this issue.
related issue: Make rollback close bolt session when transaction is closed
related issue for the java-driver: java-driver version 1.3.1
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install modelmapper-spring-boot-starter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page