package xyz.acmer.repository.system;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import xyz.acmer.entity.system.OjCode;

/**
 * Created by hypo on 16-2-27.
 */
public interface OjCodeRepository extends JpaRepository<OjCode, Integer> {

    @Query("SELECT o FROM OjCode o WHERE o.ojName=:name")
    OjCode getOjCodeByName(@Param("name")String name);
}

@@ -203,16 +203,131 @@
 .Param;%0A
+import org.springframework.stereotype.Repository;%0Aimport org.springframework.transaction.annotation.Transactional;%0A
 import x
@@ -397,16 +397,43 @@
 27.%0A */%0A
+@Repository%0A@Transactional%0A
 public i

update system