Examples of copyFields()


Examples of com.google.livingstories.server.dataservices.entities.BaseContentEntity.copyFields()

    try {
      if (baseContent.getId() == null) {
        contentEntity = BaseContentEntity.fromClientObject(baseContent);
      } else {
        contentEntity = pm.getObjectById(BaseContentEntity.class, baseContent.getId());
        contentEntity.copyFields(baseContent);
      }
      tx = pm.currentTransaction();
      tx.begin();
      pm.makePersistent(contentEntity);
      tx.commit();
View Full Code Here

Examples of com.google.livingstories.server.dataservices.entities.BaseContentEntity.copyFields()

   
    try {
      if (contentItem.getId() != null) {
        contentEntity = pm.getObjectById(BaseContentEntity.class, contentItem.getId());
        oldPublishState = contentEntity.getPublishState();
        contentEntity.copyFields(contentItem);
      } else {
        contentEntity = BaseContentEntity.fromClientObject(contentItem);
      }
     
      if (runAutoLink) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.