• Post Reply Bookmark Topic Watch Topic
  • New Topic

Newbie: How to implement to tables with same structure

Paul Duer
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!