我可以在休眠的@Embeddable 类中使用@Embedded。
示例:A 是不同类中的元素集合。
@Embeddable
class A {
@Embedded
B b;
}
@Embeddable
class B {
@Embedded
C c;
}
@Embeddable
class C {
@Embedded
D D;
}
@Embeddable
class D {
}
这种东西在休眠中有效吗?第三层嵌套。