entity.addAttribute(embedded);
// for each embedded attribute, add all Embeddable attributes to DbEntity,
// honoring @Column settings
JpaEmbeddable jpaEmbeddable = path
.firstInstanceOf(JpaEntityMap.class)
.embeddableForClass(jpaEmbedded.getPropertyDescriptor().getType());
for (JpaBasic jpaBasic : jpaEmbeddable.getAttributes().getBasicAttributes()) {
JpaColumn column = jpaBasic.getColumn();
String tableName = column.getTable() != null ? column.getTable() : entity
.getDbEntityName();