Object id = PropertyAccessorHelper.getId(relationshipObj, relMetadata);
Object serializedIdValue = serializeIdAttributeValue(relMetadata, metaModel, id);
relationship.setProperty(columnName, serializedIdValue);
// Populate attributes of embedded fields into relationship
Set<Attribute> embeddableAttributes = metaModel.embeddable(
relMetadata.getIdAttribute().getBindableJavaType()).getSingularAttributes();
for (Attribute embeddableAttribute : embeddableAttributes)
{
String embeddedColumn = ((AbstractAttribute) embeddableAttribute).getJPAColumnName();
if (embeddedColumn == null)