Hi can I persist a class that effectively like this,
I have a concrete class called GlobalRule,
which I want to change to an interface,
I have concrete classes that will then implement GlobalRule,
RuleA,
RuleB,
RuleC etc,
in our framework design we want to change GlobalRule which is currently a concrete class to an interface so that we create many types of rule objects and then persist,
is there a way in hibernate so I can then persist GlobalRule without getting the error cannot instantiate an abstract class or interface error that hibernate throws.
|