Last active
March 28, 2019 09:10
-
-
Save namila007/40be53ad64c437df586113827202e866 to your computer and use it in GitHub Desktop.
Services
This file contains hidden or 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 interface MainService <T> | |
{ | |
Page<T> getAll( Pageable pageable); | |
T add( T o); | |
T update (T o, int id); | |
T getById( int id ); | |
T deleteById(int id); | |
} |
This file contains hidden or 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 abstract class BookService implements MainService<Book> | |
{ | |
} |
This file contains hidden or 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 abstract class PublisherService implements MainService<Publisher> | |
{ | |
public abstract List<Book> getBooksById( int id ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment