Examples of PersonDAO


Examples of com.ateam.webstore.dao.PersonDAO

  }

  @Override
  public void remove(Person person) {

    PersonDAO repository = new PersonDAO();
    repository.delete(person);
   
  }
View Full Code Here

Examples of com.ateam.webstore.dao.PersonDAO

  }

  @Override
  public Collection<Person> getAll() {

    PersonDAO repository = new PersonDAO();
    return repository.getAll();
   
  }
View Full Code Here

Examples of com.ateam.webstore.dao.PersonDAO

   
  }

  @Override
  public Person getById(Serializable id) {
    PersonDAO repository = new PersonDAO();
    return repository.get(id);
  }
View Full Code Here

Examples of com.ateam.webstore.dao.PersonDAO

    PersonDAO repository = new PersonDAO();
    return repository.get(id);
  }
 
  public Person getByLogin(String email) {
    PersonDAO repository = new PersonDAO();
    return repository.getPersonByLogin(email);
  }
View Full Code Here

Examples of com.ateam.webstore.dao.PersonDAO

    PersonDAO repository = new PersonDAO();
    return repository.getPersonByLogin(email);
  }

  public Person getByLoginAndPassword(String email, String password) {
    PersonDAO repository = new PersonDAO();
    return repository.getPersonByLoginAndPassword(email, password);
  }
View Full Code Here

Examples of com.ateam.webstore.dao.PersonDAO

public class PersonService implements RepositoryService<Person> {

  @Override
  public Person store(Person person) {
   
    PersonDAO repository = new PersonDAO();
    return repository.save(person);
   
  }
View Full Code Here

Examples of com.example.helloworld.db.PersonDAO

        bootstrap.addBundle(new ViewBundle());
    }

    @Override
    public void run(HelloWorldConfiguration configuration, Environment environment) {
        final PersonDAO dao = new PersonDAO(hibernateBundle.getSessionFactory());
        final Template template = configuration.buildTemplate();

        environment.healthChecks().register("template", new TemplateHealthCheck(template));
        environment.jersey().register(DateRequiredFeature.class);
View Full Code Here

Examples of com.inspiresoftware.lib.dto.geda.examples.addressbook.service.PersonDAO



    public static void main(String[] args) {

        final PersonDAO personDAO = new PersonDAOImpl();
        final AddressBookService service = new AddressBookServiceImpl(personDAO);

        final AddressBookRun run = new AddressBookRun(personDAO, service);

        run.runSetupData();
View Full Code Here

Examples of de.timefinder.data.access.PersonDao

    public long start(int seconds, long seed, String fileOrFolder) throws Exception {
//        logger.info("process file:" + fileOrFolder);

        EventDao eDao = new EventDaoSimpl();
        PersonDao pDao = new PersonDaoSimpl();
        LocationDao lDao = new LocationDaoSimpl();
        FeatureDao fDao = new FeatureDaoSimpl();
        DataPool dataPool = new DataPoolImpl();
        dataPool.setDao(eDao);
        dataPool.setDao(fDao);
View Full Code Here

Examples of de.timefinder.data.access.PersonDao

        oldAssertations(dataPool);
    }

    // taken from xstream import
    private void oldAssertations(DataPool importDataPool) {
        PersonDao newPDao = (PersonDao) importDataPool.getDao(Person.class);
        EventDao newEDao = (EventDao) importDataPool.getDao(Event.class);
        FeatureDao newFDao = (FeatureDao) importDataPool.getDao(Feature.class);
        LocationDao newLDao = (LocationDao) importDataPool.getDao(Location.class);

        assertEquals(4, newPDao.getAll().size());
        assertEquals(4, newFDao.getAll().size());
        assertEquals(4, newEDao.getAll().size());
        assertEquals(4, newLDao.getAll().size());

        assertNotNull(newPDao);
        assertNotNull(newFDao);
        assertNotNull(newEDao);
        assertNotNull(newLDao);

        Person newPerson1 = newPDao.findFirstByName("person1");
        Person newPerson2 = newPDao.findFirstByName("person2");
        Person newPerson3 = newPDao.findFirstByName("person3");
        Person newPerson4 = newPDao.findFirstByName("person4");

        Event newEv1 = newEDao.findFirstByName("event1");
        Event newEv2 = newEDao.findFirstByName("event2");
        Event newEv3 = newEDao.findFirstByName("event3");
        Event newEv4 = newEDao.findFirstByName("event4");
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.