7a571b9ddf8d2733477eff5a699a03cbb585b719
[JavaForFun] /
1 package de.spring.example.services;
2
3 import org.resthub.common.service.CrudService;
4 import org.springframework.data.domain.Page;
5 import org.springframework.data.domain.Pageable;
6 import org.springframework.data.history.Revision;
7
8 import de.spring.example.persistence.domain.AdDescription;
9
10 public interface AdDescriptionService extends CrudService<AdDescription, Long> {
11
12         public Page<AdDescription> queryDslExample(Pageable pageRequest);
13         
14         /**
15          * Returns a {@link Page} of revisions for the entity with the given id.
16          * 
17          * @param id must not be {@literal null}.
18          * @param pageable
19          * @return
20          */
21         Page<Revision<Integer, AdDescription>> findRevisions(Long id, Pageable pageable);
22 }