Skip to content

Commit

Permalink
enabled extension in object.
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Mar 15, 2014
1 parent 062d422 commit 65c4a31
Showing 1 changed file with 7 additions and 8 deletions.
Expand Up @@ -381,14 +381,13 @@ public static <T extends ObjectType> void copyFromJAXB(ObjectType jaxb, RObject<
.getVersion()) : 0;
repo.setVersion(version);

//todo fix
// if (jaxb.getExtension() != null) {
// RAnyContainer extension = new RAnyContainer();
// extension.setOwner(repo);
//
// repo.setExtension(extension);
// RAnyContainer.copyFromJAXB(jaxb.getExtension(), extension, prismContext);
// }
if (jaxb.getExtension() != null) {
RAnyContainer extension = new RAnyContainer();
extension.setOwner(repo);

repo.setExtension(extension);
RAnyContainer.copyFromJAXB(jaxb.getExtension(), extension, prismContext);
}

repo.getParentOrgRef().addAll(RUtil.safeListReferenceToSet(jaxb.getParentOrgRef(), prismContext,
repo, RReferenceOwner.OBJECT_PARENT_ORG));
Expand Down

0 comments on commit 65c4a31

Please sign in to comment.