I am working on an older desktop application (Swing) that communicates directly with an SQL database.
So far, the data communication is done directly using JDBC. Partly DAOs are used that supply POJOs with data and store the POJOs in the database. In other parts of the application, resultsets are used directly.
The application is mostly CRUD operations. What is the best design pattern to follow in such an application if you want to use JPA in newer parts of the application?
Translated with www.DeepL.com/Translator (free version)