Java - JPA - @Basic and @Embedded

Posted by Yatendra Goel on Stack Overflow See other posts from Stack Overflow or by Yatendra Goel
Published on 2010-04-05T13:14:58Z Indexed on 2010/04/05 13:23 UTC
Read the original article Hit count: 293

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about java

Related posts about jpa