Last active
May 23, 2018 05:34
-
-
Save littlebeeper/c0cc51ed2f9ae4c56b9b49dd69a2d586 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<EntityDate> findTodaysEntries() { | |
LocalDateTime now = LocalDateTime.now(); | |
return entity.findByEntityDateBetween(now.with(LocalTime.MIN), now.with(LocalTime.MAX)); | |
} | |
//Spring data retreive first 50 results with pageable; | |
public List<AnEntity> retrieveFirst50() { | |
Pageable pageable = new PageRequest(0, 50, Sort.Direction.DESC, "matchcode"); | |
Page<AnEntity> all = anEntityRepository.findAll(pageable); | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment