Package ch.inftec.ju.testing.db.data.entity

Examples of ch.inftec.ju.testing.db.data.entity.Team


      return TransactionSynchronizationManager.isActualTransactionActive();
//      TransactionStatus status = TransactionInterceptor.currentTransactionStatus();
    }
   
    private Long doInsertTeam(String name) {
      Team t = new Team();
      t.setName(name);
     
      // See http://stackoverflow.com/questions/8625150/why-to-use-returned-instance-after-save-on-spring-data-jpa-repository
      t = this.teamRepo.save(t);
      return t.getId();
    }
View Full Code Here


    TestingEntity te = new TestingEntity();
    em.persist(te);
   
    Assert.assertEquals(10L, te.getId().longValue());
   
    Team t = new Team();
    em.persist(t);
   
    Assert.assertEquals(10L, t.getId().longValue());
  }
View Full Code Here

TOP

Related Classes of ch.inftec.ju.testing.db.data.entity.Team

Copyright © 2018 www.massapicom. 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.