I am developing an application for the management of shifts of a medical office, when I register a new shift I keep the id of it (autoincremental) and I keep a id of the patient, one of the doctor, and one of the state of the shift.
But when I retrieve the data to show it in a JTable it gives me the ids before said, instead of the names as I would like it to show them.
Is there any way to show that data, that is, the name of the patient, the description of the state?