I am starting to write java code and interact with the databases for my project "nextbigthing". Can someone direct me to the best way to handle adding / updating tables / records in databases? Here is my problem. Too many repetitions when it comes to DB code in java. First I need to create tables (I use mysql). Then I create classes in Java for each table. Then I create AddRow, DeleteRow, UpdateRow and Search * depending on my need. For every table, every need to create this huge sql ass application and classes all seems like a huge waste of time. There must be a better, simpler and more efficient way of doing things. Is there something that I donβt know that will allow me to simply tell Java what a table is,and does it automatically generate queries and execute them for me? Its a simple SQL that can be generated automatically if it knows the column names and dependencies between tables. This seems to be very reasonable.
source
share