Package com.tll.dao

Examples of com.tll.dao.IEntityDao


    Account account = null;

    getDbTrans().startTrans();
    getDbTrans().setComplete();
    try {
      final IEntityDao dao = getDao();

      account = getEntityBeanFactory().getEntityCopy(Asp.class);
      final AccountAddress aa = getEntityBeanFactory().getEntityCopy(AccountAddress.class);
      final Address a = getEntityBeanFactory().getEntityCopy(Address.class);
      aa.setAddress(a);
      account.addAccountAddress(aa);

      final Currency c = dao.persist(getEntityBeanFactory().getEntityCopy(Currency.class));
      account.setCurrency(c);

      pi = dao.persist(getEntityBeanFactory().getEntityCopy(PaymentInfo.class));
      account.setPaymentInfo(pi);

      if(persist) {
        account = dao.persist(account);
      }
    }
    finally {
      getDbTrans().endTrans();
    }
View Full Code Here


*/
@Test(groups = "service.entity")
public class UserServiceTest extends AccountRelatedServiceTest {

  private void stubAuthorities() {
    final IEntityDao dao = getDao();
    getDbTrans().startTrans();
    try {
      for(final AuthorityRoles role : AuthorityRoles.values()) {
        final Authority a = getEntityBeanFactory().getEntityCopy(Authority.class);
        a.setAuthority(role.toString());
        dao.persist(a);
      }
      getDbTrans().setComplete();
    }
    finally {
      getDbTrans().endTrans();
View Full Code Here

    Account account = null;

    getDbTrans().startTrans();
    getDbTrans().setComplete();
    try {
      final IEntityDao dao = getDao();

      account = getEntityBeanFactory().getEntityCopy(Asp.class, false);
      final AccountAddress aa = getEntityBeanFactory().getEntityCopy(AccountAddress.class, false);
      final Address a = getEntityBeanFactory().getEntityCopy(Address.class, false);
      aa.setAddress(a);
      account.addAccountAddress(aa);

      final Currency c = dao.persist(getEntityBeanFactory().getEntityCopy(Currency.class, false));
      account.setCurrency(c);

      pi = dao.persist(getEntityBeanFactory().getEntityCopy(PaymentInfo.class, false));
      account.setPaymentInfo(pi);

      if(persist) {
        account = dao.persist(account);
      }
    }
    finally {
      getDbTrans().endTrans();
    }
View Full Code Here

*/
@Test(groups = "service.entity")
public class UserServiceTest extends AccountRelatedServiceTest {

  private void stubAuthorities() {
    final IEntityDao dao = getDao();
    getDbTrans().startTrans();
    getDbTrans().setComplete();
    try {
      for(final AuthorityRoles role : AuthorityRoles.values()) {
        final Authority a = getEntityBeanFactory().getEntityCopy(Authority.class, false);
        a.setAuthority(role.toString());
        dao.persist(a);
      }
    }
    finally {
      getDbTrans().endTrans();
    }
View Full Code Here

TOP

Related Classes of com.tll.dao.IEntityDao

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.