Korrektur für Publizieren der Assoziation GenericPersonBundle <-> GenericContactBundle

git-svn-id: https://svn.libreccm.org/ccm/trunk@1555 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2012-03-27 12:53:49 +00:00
parent 78057f06a3
commit 303a40d5dc
1 changed files with 9 additions and 9 deletions

View File

@ -37,24 +37,24 @@ public class GenericPersonBundle
setContentType(primary.getContentType()); setContentType(primary.getContentType());
addInstance(primary); addInstance(primary);
super.setName(primary.getName()); super.setName(primary.getName());
} }
public GenericPersonBundle(final OID oid) throws DataObjectNotFoundException { public GenericPersonBundle(final OID oid) throws DataObjectNotFoundException {
super(oid); super(oid);
} }
public GenericPersonBundle(final BigDecimal id) throws public GenericPersonBundle(final BigDecimal id) throws
DataObjectNotFoundException { DataObjectNotFoundException {
super(new OID(BASE_DATA_OBJECT_TYPE, id)); super(new OID(BASE_DATA_OBJECT_TYPE, id));
} }
public GenericPersonBundle(final DataObject dobj) { public GenericPersonBundle(final DataObject dobj) {
super(dobj); super(dobj);
} }
public GenericPersonBundle(final String type) { public GenericPersonBundle(final String type) {
super(type); super(type);
} }
public GenericPersonContactCollection getContacts() { public GenericPersonContactCollection getContacts() {
@ -119,10 +119,10 @@ public class GenericPersonBundle
if (liveContact != null) { if (liveContact != null) {
final DataObject link = add(CONTACTS, liveContact); final DataObject link = add(CONTACTS, liveContact);
link.set(GenericPersonContactCollection.CONTACTS_KEY, contacts.get( link.set(CONTACTS_KEY,
CONTACTS_KEY)); contacts.get(GenericPersonContactCollection.CONTACTS_KEY));
link.set(GenericPersonContactCollection.CONTACTS_ORDER, link.set(CONTACTS_ORDER,
contacts.get(CONTACTS_ORDER)); contacts.get(GenericPersonContactCollection.CONTACTS_ORDER));
link.save(); link.save();
} }