Permalink
Browse files

Fix for #47

  • Loading branch information...
1 parent 7f1b61c commit 0aacc6d4d3112e57a621b73e8f743b78182e59be Jon Brisbin committed with jbrisbin Nov 27, 2012
@@ -875,9 +875,10 @@ public RepositoryRestController setDomainObjectResolver(UriToDomainObjectUriReso
if(null != (entity = repo.findOne(serId))) {
// Updating an existing resource
isUpdate = true;
- for(AttributeMetadata attrMeta : (Collection<AttributeMetadata>)repoMeta.entityMetadata()
- .embeddedAttributes()
- .values()) {
+ List<AttributeMetadata> attrs = new ArrayList<AttributeMetadata>();
+ attrs.addAll(repoMeta.entityMetadata().embeddedAttributes().values());
+ attrs.addAll(repoMeta.entityMetadata().linkedAttributes().values());
+ for(AttributeMetadata attrMeta : attrs) {
Object incomingVal;
if(null != (incomingVal = attrMeta.get(incoming))) {
attrMeta.set(incomingVal, entity);

0 comments on commit 0aacc6d

Please sign in to comment.