I created a small JavaFX with two scenes. The user can enter 3 fields (text) and upload some documents for the object.
So, I thought when the user clicks on to save the json object, it is created and added to the list of Json objects. These Json objects are then written to the file.
This is what I was thinking:
{ "objects": { "object1": { "field1": "foo" "field2": "foo" "field3": "foo" "folderwithfileslocation": "C:/ProgramFiles/myapp/foobar/" }, "object2": { "field1": "foobar" "field2": "foobar" "field3": "foobar" "folderwithfileslocation": "C:/ProgramFiles/myapp/barbar/" }, ....... .... .. }
They will be read into objects at startup, so the user has access to them, so he can edit them, add, delete, etc. etc. typical CRUD.
Is this the right approach? There would be a maximum of 500-600 entries. Should I add a unique identifier (idk like randomUUID() )?
thanks
source share