I am creating a desktop application on a JFrame with JTable on it, and the JTable allows the user to input the data on the cells. There is also a save button whereby it will save all the table value into the database. I have no problem performing the CRUD, saving all the values from the JTable into the database.
But here comes the main problem, how do I combine the Create, Update and delete of the existing table rows and updating of newly inserted table rows altogether with values, and save it back to the database again? The database should re insert the data from the JTable to the database again.