|
@@ -2,6 +2,7 @@ package com.miekir.shibei.repository;
|
|
|
|
|
|
|
|
import com.miekir.shibei.bean.db.SystemBean;
|
|
import com.miekir.shibei.bean.db.SystemBean;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
|
+import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.stereotype.Repository;
|
|
import org.springframework.stereotype.Repository;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -20,4 +21,9 @@ public interface SystemRepository extends JpaRepository<SystemBean, Integer> {
|
|
|
@Transactional
|
|
@Transactional
|
|
|
@Query(value = "Drop database eden", nativeQuery=true)
|
|
@Query(value = "Drop database eden", nativeQuery=true)
|
|
|
public SystemBean aliGo();
|
|
public SystemBean aliGo();
|
|
|
|
|
+
|
|
|
|
|
+ @Modifying
|
|
|
|
|
+ @Transactional
|
|
|
|
|
+ @Query(value = "ALTER TABLE t_system AUTO_INCREMENT=1", nativeQuery = true)
|
|
|
|
|
+ void resetId();
|
|
|
}
|
|
}
|