How should i map an enum implementing an interface with hibernate

Viewed 610

Let me explain with code :

public interface A {}

public enum B implements A{}

public enum C implements A{}

@Entity
@Table(name = "land")
public class D extends ABSDBOperations {
private A a;

public A getA(){
return a;
}
public void setA(A a){
this.a=a;
}
}

what annotation should i use above getA() to be able to persist a attribute?

0 Answers
Related