Examples of save()


Examples of de.mhus.lib.cao.CaoWritableElement.save()

              }
              pw.setString(RULE,sb.toString());               
            } else {
              pw.setString(RULE,priv.getString());
            }
            pw.save();

            list.add(p);
          }
        }
      }
View Full Code Here

Examples of de.mhus.lib.config.IConfig.save()

      try {
        if (MSingleton.instance().isPersistence()) {
          IConfig persistence = MSingleton.instance().getPersistenceManager().sessionScope().getPersistence("de.mhus.lib");
          long uid = MSingleton.instance().nextUniqueId();
          persistence.setString(getJmxName() + "_" + name + "_" + uid, getCurrentTimeAsString());
          persistence.save();
        }
      } catch (Throwable t) {
        log().t(t);
      }
     
View Full Code Here

Examples of de.mhus.lib.test.adb.model.Finances.save()

      f.setPassiva(10);
      f.setStore(s1.getId());
      f.create(manager);
     
      f.setActiva(20);
      f.save();
     
      f.setNewConfidential("write");
      f.save();
     
      try {
View Full Code Here

Examples of de.mhus.lib.test.adb.model.Regal.save()

      r.setValue("store", s1.getId());
      r.setValue("name", "regal 1");
      r.create(manager);
     
      r.setValue("name", "regal 22113221");
      r.save();
     
      Regal r2 = (Regal) manager.getObject(Regal.class, r.getValue("id"));
      assertNotNull(r2);

      r2.reload();
View Full Code Here

Examples of de.mhus.lib.test.adb.model.Store.save()

      s1.setName("Creasy Bookstore");
      s1.setAddress("The Oaks\nDublin");
      s1.create(manager);
     
      s1.setAddress("The Lakes\nDublin");
      s1.save();
     
      // test change in another session and reload
      Store s2 = (Store) manager.getObject(Store.class, s1.getId());
      s2.setAddress("");
      s2.save();
View Full Code Here

Examples of de.mhus.lib.test.jpa.model.Person.save()

   
    em.begin();
   
    Person p1 = em.injectObject(new Person());
    p1.setName("Kurt Cobain");
    p1.save();
   
   
    Person p2 = em.injectObject(new Person());
    p2.setName("Lola Langohr");
    p2.save();
View Full Code Here

Examples of de.olivergierke.whoops.repository.account.AccountRepository.save()

  @Bean
  public AccountRepository accountRepository() {

    AccountRepository repository = mock(AccountRepository.class);
    when(repository.save(any(Account.class))).thenAnswer(withArgument());
    return repository;
  }

  @Bean
  public CustomerRepository customerRepository() {
View Full Code Here

Examples of de.olivergierke.whoops.repository.customer.CustomerRepository.save()

  }

  @Bean
  public CustomerRepository customerRepository() {
    CustomerRepository repository = mock(CustomerRepository.class);
    when(repository.save(any(Customer.class))).thenAnswer(withArgument());
    return repository;
  }

  private static <T> Answer<T> withArgument() {
    return new ArgumentAnswer<T>();
View Full Code Here

Examples of de.sub.goobi.persistence.BenutzerDAO.save()

      BenutzerDAO dao = new BenutzerDAO();
      List<Benutzer> myBenutzer = dao.search("from Benutzer");
      for (Benutzer ben : myBenutzer) {
        String passencrypted = encrypter.encrypt(ben.getPasswort());
        ben.setPasswort(passencrypted);
        dao.save(ben);
      }
      Helper.setMeldung(null, "", "passwords successful ciphered");
    } catch (Exception e) {
      Helper.setFehlerMeldung("could not cipher passwords: ", e.getMessage());
    }
View Full Code Here

Examples of de.sub.goobi.persistence.ProzessDAO.save()

    Helper.deleteDir(fileOut);
    try {
      setStatusMessage("saving process");
      Prozess myProzess = dao.get(getProzess().getId());
      myProzess.setSwappedOutGui(false);
      dao.save(myProzess);
    } catch (DAOException e) {
      setStatusMessage("DAOException while saving process: " + e.getMessage());
      logger.warn("DAOException:", e);
      setStatusProgress(-1);
      return;
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.