JPA Embeddable annotation

It is used to define a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity. Each of the persistent properties or fields of the embedded object is mapped to the database table for the entity.

Example:

@Embeddable public class Zipcode {
       protected String zip;
       protected String plusFour;
}