/*package cz.fi.muni.pa165.seminar.pkmnleague.dao;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

///**
// * Implementation of PokemonDao interface.
// *
// * @author dhanak @domhanak on 10/28/15.
 //
@Repository
@Transactional
public class PokemonDaoImpl implements PokemonDao {

    @PersistenceContext
    private EntityManager entityManager;

    @Override
    public Pokemon findById(int id) {
        return entityManager.find(Pokemon.class, id);
    }

    @Override
    public void create(Pokemon pokemon) {
        entityManager.persist(pokemon);
    }

    @Override
    public void delete(Pokemon pokemon) {
        entityManager.remove(pokemon);
    }

    @Override
    public List<Pokemon> findAll() {
        return entityManager.createQuery("select p from Pokemon p", Pokemon.class).getResultList();
    }
} */

@@ -1,10 +1,8 @@
-/*
 package 
@@ -43,16 +43,75 @@
 e.dao;%0A%0A
+import cz.fi.muni.pa165.seminar.pkmnleague.domain.Pokemon;%0A
 import o
@@ -307,17 +307,36 @@
 xt;%0A
-%0A//
+import java.util.List;%0A%0A
 /**%0A
-//
  * I
@@ -378,15 +378,11 @@
 ce.%0A
-//
  *%0A
-//
  * @
@@ -419,17 +419,17 @@
 28/15.%0A 
-/
+*
 /%0A@Repos
@@ -711,21 +711,19 @@
 ic void 
-creat
+sav
 e(Pokemo
@@ -1042,12 +1042,9 @@
 %0A    %7D%0A%7D
- */
 %0A

add PokemonDaoImpl