Skip to content

Commit

Permalink
Merge pull request #94 from silverprize/develop
Browse files Browse the repository at this point in the history
fix notice in list
  • Loading branch information
pio authored Jul 30, 2016
2 parents 652cba8 + 3c963df commit d33b3bf
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package com.jakduk.repository;

import com.jakduk.model.db.BoardFree;
import com.jakduk.model.simple.BoardFreeOfMinimum;
import com.jakduk.model.simple.BoardFreeOnList;
import com.jakduk.model.web.BoardFreeWrite;
import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

import java.util.Optional;
import com.jakduk.model.db.BoardFree;
import com.jakduk.model.simple.BoardFreeOfMinimum;
import com.jakduk.model.simple.BoardFreeOnList;
import com.jakduk.model.web.BoardFreeWrite;

public interface BoardFreeRepository extends MongoRepository<BoardFree, String> {

Expand All @@ -21,7 +22,7 @@ public interface BoardFreeRepository extends MongoRepository<BoardFree, String>
long countByCategoryName(String categoryName);
long count();

@Query(value="{'status.notice' : 'notice'}")
@Query(value="{'status.notice' : true}")
Page<BoardFreeOnList> findByNotice(Pageable pageable);

@Query(value="{'seq' : ?0}")
Expand Down

0 comments on commit d33b3bf

Please sign in to comment.