Package org.openbp.server.persistence

Examples of org.openbp.server.persistence.PersistenceContext.refreshObject()


  {
    PersistenceContext pc = getPersistenceContextProvider().obtainPersistenceContext();
    try
    {
      DbModel dbModel = findDbModel(pc, model.getName());
      dbModel = (DbModel) pc.refreshObject(dbModel);

      Model newModel = dbModelToModel(dbModel);
      try
      {
        model.copyFrom(newModel, Copyable.COPY_SHALLOW);
View Full Code Here


  {
    PersistenceContext pc = getPersistenceContextProvider().obtainPersistenceContext();
    try
    {
      DbModelItem dbModelItem = findDbModelItem(pc, item);
      dbModelItem = (DbModelItem) pc.refreshObject(dbModelItem);

      Item newItem = dbModelItemToItem(dbModelItem);
      try
      {
        item.copyFrom(newItem, Copyable.COPY_SHALLOW);
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.