Java - JPA - @Basic and @Embedded
- by Yatendra Goel
I am learning JPA from this tutorial.
I have some confusions in understanding the following annotations:
@Basic
@Embedded
Fields of an embeddable type default to persistent, as if annotated with @Embedded.
If the fields of embeddable types defualt to persistent, then why would we need @Embedded