title: How does the ER model look like for @Embedded classes?
body: <p>When I use an @Embedded class in Java / JPA, how is this mirrored in the database?
  For instance, if I have an <code>@Entity User</code> with an <code>@Embedded @Entity Address</code>:</p>
  <pre><code>@Entity
  @Table(name=&quot;User&quot;)
  public class User {
      @ID
      private Long u_id;
  
      @Column(name=&quot;name&quot;)
      private String name;
  
      @Embedded
      private Address address;
  }
  
  @Entity
  @Table(name=&quot;Address&quot;)
  public class Address {
  
      @Column(name=&quot;street&quot;)
      private String street;
  
      @Column(name=&quot;zip&quot;)
      private String zipcode;
  
      ....
  }
  </code></pre>
  <p>Will this result in two tables referenced using a foreign key or will there be just ONE table containing aLL columns of both entities (what would be not well normalized)?</p>