Обработка файла JSON с помощью ORM в Spring Boot ⇐ JAVA
-
Anonymous
Обработка файла JSON с помощью ORM в Spring Boot
I have a JSON file called Person.json
{ "id": 1, "name": "John", "description": "I am john", "address": "XYZ address" } I want to know if there is any ORM exist to deal with the data in the JSON file.
Example - I want to update field 'description' to "Hi, I am John". I'll just call an update method.
Person person = jsonRepository.findById(1); person.setDescription("Hi, I am John"); jsonRepository.save(person); Same as we deal with the database using JPA and their implementations in java projects.
Источник: https://stackoverflow.com/questions/781 ... pring-boot
I have a JSON file called Person.json
{ "id": 1, "name": "John", "description": "I am john", "address": "XYZ address" } I want to know if there is any ORM exist to deal with the data in the JSON file.
Example - I want to update field 'description' to "Hi, I am John". I'll just call an update method.
Person person = jsonRepository.findById(1); person.setDescription("Hi, I am John"); jsonRepository.save(person); Same as we deal with the database using JPA and their implementations in java projects.
Источник: https://stackoverflow.com/questions/781 ... pring-boot
Мобильная версия