If the O/R mapping information is not specified for the persistence fields or persistence properties other than relationship, the following default mapping rules are applied:
- For a class in which @Embeddable is annotated, the field/ property is mapped to the database according to the specification in the entity in @Embedded.
- If the persistence field/ persistence property type is one of the following, the mapping method is the same as when @Basic is defined:
- Java primitive type
- Primitive type wrapper
- java.lang.String
- java.math.BigInteger
- java.math.BigDecimal
- java.util.Date
- java.util.Calendar
- java.sql.Date
- java.sql.Time
- java.sql.Timestamp
- byte[]
- Byte[]
- char[]
- Character[]
- enum
- Any type that implements Serializable
Note that the operations might not function properly if types other than those mentioned above are specified.