Exemplo n.º 1
0
 /**
  * A "generic" method to save an arbitrary {@link PersistentObject}.
  *
  * @param object
  */
 public void savePersistentObject(PersistentObject object) {
   final String type = object.getClass().getSimpleName();
   LOG.trace("Trying to create a new " + type);
   dao.saveOrUpdate(object);
   LOG.info("Created the " + type + " with id " + object.getId());
 }