package com.imcode.repositories;

import com.imcode.entities.SchemaVersion;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by ruslan on 09.06.16.
 */
public interface SchemaVersionRepository extends JpaRepository<SchemaVersion, Long> {
    SchemaVersion findByCurrentTrue();

    SchemaVersion findByVersion(String version);
}

@@ -130,16 +130,89 @@
 ository;
+%0Aimport org.springframework.data.jpa.repository.JpaSpecificationExecutor;
 %0A%0A/**%0A *
@@ -330,16 +330,57 @@
 n, Long%3E
+, JpaSpecificationExecutor%3CSchemaVersion%3E
  %7B%0A    S

Add jpa specification executor to SchemaVersionRepository