Skip to content

Commit

Permalink
feat: extension to beer repository with quarkus
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Feb 24, 2024
1 parent edef37a commit 1009ce3
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,12 @@
*/
package org.acme;

import jakarta.data.repository.PageableRepository;
import jakarta.data.repository.Query;
import jakarta.data.repository.BasicRepository;
import jakarta.data.repository.Repository;

import java.util.Set;

@Repository
public interface BeerRepository extends PageableRepository<Beer, String> {
public interface BeerRepository extends BasicRepository<Beer, String> {

Set<Beer> findByStyle(String style);

@Query("select * from Beer")
Set<Beer> query();
}

0 comments on commit 1009ce3

Please sign in to comment.