Embeddable class' name and the reference to it are different

Description

On embeddables section of the documentation, there is the following example:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 @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.

Environment

None

Status

Assignee

Chris Cranford

Reporter

Utku

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.0

Priority

Major
Configure