Hello, is it possible using this mapping?
An embeddable class B inside class A.
Code:
@Entity
public Class A{
public A(){
b = new B();
}
...
@Embedded
private B b;
..
public B getB(){
..
}
public void setB(B b){
..
}
@Embeddable
Class B{
String c;
..
public String getC() {
return c;
}
public void setC(String c) {
this.c= c;
}
..
}
..
}//close class A
I receive the exception
No default constructor for entity: com.terun.A$B
If I put the class B outside A, I don't receive exception but in my jsp, I can't put ${a.b.c} (where a is an instance of class A).
It seems that not read the method "getC()".
thanks in advance