Interface SuperController<E extends DataPresentation<I>,I extends Comparable<? super I> & Serializable>

Type Parameters:
E - The DataPresentation type use in the service layer.
I - The ID of type Comparable and Serializable.

public interface SuperController<E extends DataPresentation<I>,I extends Comparable<? super I> & Serializable>
The base controller interface.

Example:

To create a controller interface that inherits from SuperController, follow these steps:

Create a new controller interface:

 public interface YourController
     extends SuperController<YourEntity, YourIdType> {
     // Add your methods signature here
 }
 

To create a controller class that implements SuperController, follow these steps:

Create a new controller class:

 @RestController
 @RequestMapping("/yourPath")
 public class YourController
     implements SuperController<YourEntity, YourIdType> {

     // Or implements your interface that extends SuperController.
     private final YourService service;

     public YourController(final YourService service) {

         this.service = service;
     }

     public YourService getService() {

         return this.service;
     }
 }
 
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the SuperService associated with this SuperController.