Examples of EmployeeEntity


Examples of com.expositds.ars.dao.entity.user.EmployeeEntity

    if (page != null) {
      position = (page - 1) * PAYMENTS_PER_PAGE;
      amount = PAYMENTS_PER_PAGE;
    }

    EmployeeEntity recipientEntity = DozerHelper.map(recipient,
        EmployeeEntity.class);

    List<OutgoingPaymentEntity> outgoingPaymentEntities = paymentRepository
        .findByRecipient(recipientEntity, completed, amount, position);

View Full Code Here

Examples of com.expositds.ars.dao.entity.user.EmployeeEntity

    if (page != null) {
      position = (page - 1) * PAYMENTS_PER_PAGE;
      amount = PAYMENTS_PER_PAGE;
    }

    EmployeeEntity recipientEntity = DozerHelper.map(recipient,
        EmployeeEntity.class);

    List<OutgoingPaymentEntity> outgoingPaymentEntities = paymentRepository
        .findByRecipientInPeriod(recipientEntity, beginDate,
            endingDate, completed, amount, position);
View Full Code Here

Examples of com.expositds.ars.dao.entity.user.EmployeeEntity

    super(Employee.class, EmployeeEntity.class);
  }

  @Override
  public EmployeeEntity convertTo(Employee source, EmployeeEntity destination) {
    EmployeeEntity result = null;

    if (source instanceof Employee) {
      EmployeeEntity employeeEntity = new EmployeeEntity();

      employeeEntity.setId(source.getId());
      employeeEntity.setEmail(source.getEmail());
      employeeEntity.setName(source.getName());
      employeeEntity.setPassword(source.getPassword());
      employeeEntity.setPatronymic(source.getPatronymic());
      employeeEntity.setPhone(source.getPhone());
      employeeEntity.setPosition(source.getPosition());
      employeeEntity.setRole(source.getRole());
      employeeEntity.setSalary(source.getSalary());
      employeeEntity.setSurname(source.getSurname());

      result = employeeEntity;
    }

    if (source instanceof Mechanic) {
View Full Code Here

Examples of com.expositds.ars.dao.entity.user.EmployeeEntity

  @SuppressWarnings("deprecation")
  @Override
  public Employee convertFrom(EmployeeEntity source, Employee destination) {
    Employee result = null;
    EmployeeEntity tmp = null;

    if (source != null) {
      tmp = HibernateHelper.initializeAndUnproxy(source);
    }

    if (tmp instanceof EmployeeEntity) {
      Employee employee = new Employee();

      employee.setId(tmp.getId());
      employee.setEmail(tmp.getEmail());
      employee.setName(tmp.getName());
      employee.setPassword(tmp.getPassword());
      employee.setPatronymic(tmp.getPatronymic());
      employee.setPhone(tmp.getPhone());
      employee.setPosition(tmp.getPosition());
      employee.setRole(tmp.getRole());
      employee.setSalary(tmp.getSalary());
      employee.setSurname(tmp.getSurname());

      result = employee;
    }

    if (tmp instanceof MechanicEntity) {
      Mechanic mechanic = new Mechanic();

      mechanic.setId(tmp.getId());
      mechanic.setEmail(tmp.getEmail());
      mechanic.setName(tmp.getName());
      mechanic.setPassword(tmp.getPassword());
      mechanic.setPatronymic(tmp.getPatronymic());
      mechanic.setPhone(tmp.getPhone());
      mechanic.setPosition(tmp.getPosition());
      mechanic.setRole(tmp.getRole());
      mechanic.setSalary(tmp.getSalary());
      mechanic.setSurname(tmp.getSurname());
      mechanic.setAverageRating(((MechanicEntity) tmp).getAverageRating());
      mechanic.setCurrentOrdersAmount(((MechanicEntity) tmp)
          .getCurrentOrdersAmount());

      result = mechanic;
View Full Code Here

Examples of net.freedom.gj.example.jpa.EmployeeEntity

     * Service method to demonstrate usage of a configured
     * mapper in a typical scenario.
     * @param emp
     */
    public void save(Employee emp){
       EmployeeEntity entity =  mapper.map(emp, new EmployeeEntity() );
       persist( entity );       
    }
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.