package testJpa.simpleSpring.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import testJpa.simpleSpring.domain.SimpleSpring;

/**
 * Data access object for a simple table. The interface is modeled after
 * Spring's CrudRepository interface.
 */
@Repository
public interface SimpleSpringDao extends JpaRepository<SimpleSpring, Long>, SimpleSpringDaoCustom {

    /**
     * save an entity
     *
     * @param entity
     *            to save
     * @return the managed entity
     */
    @Override
    SimpleSpring save(SimpleSpring entity);

    /**
     * find one entity by id
     *
     * @param id
     *            to find
     * @return the entity
     */
    @Override
    SimpleSpring findOne(Long id);

    /**
     * Retrieve all entities from the table. No specific order is guaranteed.
     *
     * @return all entities
     */
    @Override
    List<SimpleSpring> findAll();

    /**
     * Get count of entities in the table.
     * <p>
     * Use {@link SimpleSpringDao#isEmpty()} instead if count would be check for
     * zero only.
     *
     * @return count of entities in the table
     */
    @Override
    long count();

    /**
     * delete one entity
     *
     * @param entity
     *            to delete
     */
    @Override
    void delete(SimpleSpring entity);

    /**
     * check if one entity exists in the table
     *
     * @param id
     *            to find
     * @return true if entity exists
     */
    @Override
    boolean exists(Long id);

    /**
     * find by data field
     *
     * @param data
     *            the data to find
     * @return the matching entities
     */
    Iterable<SimpleSpring> findByData(String data);

}
@@ -32,32 +32,8 @@
 o;%0A%0A
-import java.util.List;%0A%0A
 impo
@@ -427,1141 +427,8 @@
  %7B%0A%0A
-    /**%0A     * save an entity%0A     *%0A     * @param entity%0A     *            to save%0A     * @return the managed entity%0A     */%0A    @Override%0A    SimpleSpring save(SimpleSpring entity);%0A%0A    /**%0A     * find one entity by id%0A     *%0A     * @param id%0A     *            to find%0A     * @return the entity%0A     */%0A    @Override%0A    SimpleSpring findOne(Long id);%0A%0A    /**%0A     * Retrieve all entities from the table. No specific order is guaranteed.%0A     *%0A     * @return all entities%0A     */%0A    @Override%0A    List%3CSimpleSpring%3E findAll();%0A%0A    /**%0A     * Get count of entities in the table.%0A     * %3Cp%3E%0A     * Use %7B@link SimpleSpringDao#isEmpty()%7D instead if count would be check for%0A     * zero only.%0A     *%0A     * @return count of entities in the table%0A     */%0A    @Override%0A    long count();%0A%0A    /**%0A     * delete one entity%0A     *%0A     * @param entity%0A     *            to delete%0A     */%0A    @Override%0A    void delete(SimpleSpring entity);%0A%0A    /**%0A     * check if one entity exists in the table%0A     *%0A     * @param id%0A     *            to find%0A     * @return true if entity exists%0A     */%0A    @Override%0A    boolean exists(Long id);%0A%0A
     

remove the redundant method declarations