| On embeddables section of the documentation, there is the following example:
@Embeddable
public class Address {
private String line1;
private String line2;
@Embedded
private ZipCode zipCode;
...
@Embeddable
public static class Zip {
private String postalCode;
private String plus4;
...
}
}
Note that the embeddable class is named `Zip`, whereas the type of the embedded field of `Address` is `ZipCode`. I guess both should have the same name. |