Answer the question
In order to leave comments, you need to log in
How to structure tables (MySQL) and classes (Java) correctly?
Good morning, I have three identical tables that only change the value of one column.
Example:
As you can see in the picture, only the value of the Cost column changes.
I quickly typed them in to make it work. I implemented it this way, I created 3 tables in MySQL (it turns out that I dilated columns for each table). After I coded one common model, then I created 3 DAO classes (for each table) and three Controllers.
Question: How can I put all this in order? (I know that you can’t do this, I just didn’t have enough experience to bring it back to normal. Also, time was not in my favor).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question