Good morning all, I'm looking for some advice on a cleaner way to do this. Basically what I want to do is to be able to load one class from two different tables, one table is used to intialize the object, while the other is used to save/update the users changes. Right now I am accomplishing this by having one class simply extend another, i.e.
public class A{
    //bunch of getter/setter methods
}
________________________
public class B extends A{
    //essentialy empty class
}
 
So in my mapping file I can use classes A and B in two seperate tables, but essentialy they are the same class. Is there a better way to go about this then having, essentially, a second empty class or a second mapping file? Or maybe the second mapping file is a better way to go? I really dont know and would like some input.
 
Thanks!
Nick Stuart

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.568 / Virus Database: 359 - Release Date: 1/26/2004

Reply via email to