The Embeddable classes should be defined in the separate class. It
should not be declared as the member class. Also the equals and hashCode
should be generated for the Identifier classes.