Now I have two classes
class A{ @Column(name="num1") private BigDecimal num1; private B b; //getter and setter }