package de.ivu.elect.business.wahl.control;

import javax.enterprise.inject.Specializes;
import javax.inject.Inject;

import de.ivu.elect.business.wahl.boundary.WahlDAO;
import de.ivu.elect.business.wahl.entity.Wahl;

/**
 *  on 13.07.2016.
 */
@Specializes
public class CommonWahlAttacher extends WahlAttacher {

  private static final long serialVersionUID = 1L;

  @Inject
  private transient WahlDAO wahlDAO;

  @Override
  public Wahl attach(Wahl wahl) {
    return wahlDAO.attach(wahl);
  }
}
