Forums Register Login

Newbie: How to implement to tables with same structure

+Pie Number of slices to send: Send
Hello all,
I have a quick and dirty question that I am sure is easily accessible.
I have two tables that are exactly the same in sturcture, but each holds different entries for a combo box on a JSP.
How do I write one main class that can support pulling data from either table?
I had considered a Abstract Factory, so that I could just create either/or from one class, but I am not sure.
Grow your own food... or this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 836 times.
Similar Threads
Saving Associated objects
datatable and databases
database design problem for asp model
Hibernate : Hibernate :Mapping Multiple Table for single POJO class
HF-SQL: Design choices
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:25:00.