Package org.evolizer.core.hibernate.session.api

Examples of org.evolizer.core.hibernate.session.api.IEvolizerSession.saveObject()


   
      DummyBusinessEntity entity = new DummyBusinessEntity();
      entity.setAString("This is also a test");
   
      s.startTransaction();
      s.saveObject(entity);
      s.endTransaction();
   

      List<DummyBusinessEntity> lgList = (List<DummyBusinessEntity>) s.query("from " + DummyBusinessEntity.class.getName(), DummyBusinessEntity.class);
   
View Full Code Here


  private void save(Object... objects) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      for(Object o : objects) {
        s.saveObject(o);
      }
      s.endTransaction();
      s.close();
    } catch (EvolizerException e) {
      fail(e.getMessage());
View Full Code Here

  private <T>T saveAndReloadUniqueFromDB(Object object, String reloadQuery, Class<T> resultType) {
    try {
      IEvolizerSession s = fSessionHandler.getCurrentSession(fDBUrl);
      s.startTransaction();
      s.saveObject(object);
      s.endTransaction();

      s.close();

      s = fSessionHandler.getCurrentSession(fDBUrl);
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.