The generated metamodel is empty for embeddables without getters.
For example, for this types:
{code:java}@Embeddable public class Foo { String foo; }
@Entity public class Bar { @Id String bar; @Embedded Foo foo; }{code}
the metamodel generator will generate:
{code:java}@StaticMetamodel(Foo.class) public abstract class Foo_ {
}
@StaticMetamodel(Bar.class) public abstract class Bar_ {
public static volatile SingularAttribute<Bar, String> bar; public static volatile SingularAttribute<Bar, Foo> foo;
public static final String BAR = "bar"; public static final String FOO = "foo"; }{code}
One would expect the same behavior for both the managed types. |
|