Before I spend hours trying to solve the problem can someone tell me
if the following is possible...
 
I want to persist subclasses of a base class and load them again without
particularly knowing what the class is (if that makes sense). For example:
 
class Fruit { .. }
class Apple extends Fruit { ... }
class Pear extends Fruit { ... }
 
Fruit getFruit(int fruitId) {
  // ????
}
 
Is there a neat way of doing this? Thanks in advance
 
Keith

Reply via email to