完成Bean改造
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package net.alawn.bill.repository;
|
||||
|
||||
import net.alawn.bill.entity.po.Main;
|
||||
import net.alawn.bill.entity.po.Post;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: Alawn
|
||||
* @Description:
|
||||
* @Date: Create in 11:14 2019-05-23
|
||||
*/
|
||||
|
||||
@Repository
|
||||
public interface MainRepo extends JpaRepository<Main, Long> {
|
||||
List<Main> findByPost(Post post);
|
||||
}
|
||||
Reference in New Issue
Block a user