spring data JPA and check that operation is done successfully or not.
I'm using the below scenario:
1. find the record by primary key (findById)
2. update desired properties of persisted object by setter methods
3. save the final object in db and get returned object [SavedObject obj = crudRepository.save()]
4. check obj.getId() >0
is there any better way?
Check obj!=null
How do checked cuncurrency?
https://stackoverflow.com/a/36481755/10976088
I will correct my questions، how do checked cuncurrency to Graph Db for commit ?
Обсуждают сегодня