package xyz.acmer.repository.user;

/**
 * Created by hypo on 16-2-26.
 */
public interface BalanceRepository {
}

@@ -29,16 +29,401 @@
 .user;%0A%0A
+import org.springframework.data.jpa.repository.JpaRepository;%0Aimport org.springframework.data.jpa.repository.Query;%0Aimport org.springframework.data.repository.query.Param;%0Aimport org.springframework.stereotype.Repository;%0Aimport org.springframework.transaction.annotation.Transactional;%0Aimport xyz.acmer.entity.user.Balance;%0Aimport xyz.acmer.entity.user.User;%0A%0Aimport java.util.List;%0A%0A
 /**%0A * C
@@ -453,16 +453,43 @@
 26.%0A */%0A
+@Repository%0A@Transactional%0A
 public i
@@ -519,8 +519,163 @@
 ory 
-%7B
+extends JpaRepository%3CBalance, Long%3E%7B%0A%0A    @Query(%22SELECT b FROM Balance b WHERE b.user=:user%22)%0A    List%3CBalance%3E getBalanceByUser(@Param(%22user%22)User user);
 %0A%7D%0A

update user