From: Amy Wieliczka Date: Tue, 15 May 2012 22:59:25 +0000 (-0700) Subject: CSPACE-5128: Added 'Group' to the end of birthDate and deathDate to keep naming consi... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=584eaff80d93d0f8189e29795edd883c62b1cdca;p=tmp%2Fjakarta-migration.git CSPACE-5128: Added 'Group' to the end of birthDate and deathDate to keep naming consistent --- diff --git a/services/person/3rdparty/nuxeo-platform-cs-person/src/main/resources/schemas/persons_common.xsd b/services/person/3rdparty/nuxeo-platform-cs-person/src/main/resources/schemas/persons_common.xsd index a5678030b..c13460b34 100644 --- a/services/person/3rdparty/nuxeo-platform-cs-person/src/main/resources/schemas/persons_common.xsd +++ b/services/person/3rdparty/nuxeo-platform-cs-person/src/main/resources/schemas/persons_common.xsd @@ -30,8 +30,8 @@ - - + + diff --git a/services/person/client/src/main/java/org/collectionspace/services/client/PersonAuthorityClientUtils.java b/services/person/client/src/main/java/org/collectionspace/services/client/PersonAuthorityClientUtils.java index 75745ebf7..7e1584766 100644 --- a/services/person/client/src/main/java/org/collectionspace/services/client/PersonAuthorityClientUtils.java +++ b/services/person/client/src/main/java/org/collectionspace/services/client/PersonAuthorityClientUtils.java @@ -207,12 +207,12 @@ public class PersonAuthorityClientUtils { if((value = (String)personInfo.get(PersonJAXBSchema.BIRTH_DATE))!=null) { StructuredDateGroup birthDate = new StructuredDateGroup(); birthDate.setDateDisplayDate(value); - person.setBirthDate(birthDate); + person.setBirthDateGroup(birthDate); } if((value = (String)personInfo.get(PersonJAXBSchema.DEATH_DATE))!=null) { StructuredDateGroup deathDate = new StructuredDateGroup(); deathDate.setDateDisplayDate(value); - person.setDeathDate(deathDate); + person.setDeathDateGroup(deathDate); } if((value = (String)personInfo.get(PersonJAXBSchema.BIRTH_PLACE))!=null) person.setBirthPlace(value); diff --git a/services/person/jaxb/src/main/resources/person_common.xsd b/services/person/jaxb/src/main/resources/person_common.xsd index c09112e52..33b8582a6 100644 --- a/services/person/jaxb/src/main/resources/person_common.xsd +++ b/services/person/jaxb/src/main/resources/person_common.xsd @@ -40,8 +40,8 @@ - - + + diff --git a/services/person/sample/sample/src/main/java/org/collectionspace/services/person/client/sample/Sample.java b/services/person/sample/sample/src/main/java/org/collectionspace/services/person/client/sample/Sample.java index 105d37431..1e09bc184 100644 --- a/services/person/sample/sample/src/main/java/org/collectionspace/services/person/client/sample/Sample.java +++ b/services/person/sample/sample/src/main/java/org/collectionspace/services/person/client/sample/Sample.java @@ -375,12 +375,12 @@ public class Sample { if((value = (String)personInfo.get(PersonJAXBSchema.BIRTH_DATE))!=null) { StructuredDateGroup birthDate = new StructuredDateGroup(); birthDate.setDateDisplayDate(value); - person.setBirthDate(birthDate); + person.setBirthDateGroup(birthDate); } if((value = (String)personInfo.get(PersonJAXBSchema.DEATH_DATE))!=null) { StructuredDateGroup deathDate = new StructuredDateGroup(); deathDate.setDateDisplayDate(value); - person.setDeathDate(deathDate); + person.setDeathDateGroup(deathDate); } if((value = (String)personInfo.get(PersonJAXBSchema.BIRTH_PLACE))!=null) person.setBirthPlace(value);