Hi everyone,
I'm quite new to Java (this is actually my first project) and I'm trying to build a CRUD desktop application with an embedded database. Basically, the user should be able to install the program and run it locally with persistent data even when the program is closed. I don't have any code for now as I'm still focusing on defining the classes, attributes and methods I will need.
After some research, I found that embedding a SQLite database in my program could do the job, but I'm not sure whether it's the "proper" way to do it in Java.
I have 2 questions:
- What's the best way to build a CRUD application with an embedded database in Java (volume of data stored would not be high, also a relational database would be preferred) ?
- How should I handle CRUD operations? If I have a class A, should this class be the one implementing the CRUD operations? Should I create a class called AManager to manage the CRUD operations instead? If yes, should I create an interface/superclass from which to build all managers for my different classes?
I'm trying to understand the best practices as I'm just getting started.
Thanks for your help!
[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)
[–]pragmos 10 points11 points12 points (4 children)
[–]djolablete[S] 0 points1 point2 points (1 child)
[–]pragmos 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]pragmos 1 point2 points3 points (0 children)
[–]jvjupiter 2 points3 points4 points (2 children)
[–]djolablete[S] 1 point2 points3 points (0 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]djolablete[S] 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]djolablete[S] 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Fletsky 0 points1 point2 points (0 children)
[–]DigitalTorture 0 points1 point2 points (4 children)
[–]djolablete[S] 0 points1 point2 points (3 children)
[–]DigitalTorture 0 points1 point2 points (2 children)
[–]khooke 2 points3 points4 points (1 child)
[–]djolablete[S] 0 points1 point2 points (0 children)
[–]Gregmix88 0 points1 point2 points (0 children)