Skip to content

Instantly share code, notes, and snippets.

@evrentan
Created March 28, 2021 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evrentan/45d5f3461bdf1ebe9889f5cd30517c68 to your computer and use it in GitHub Desktop.
Save evrentan/45d5f3461bdf1ebe9889f5cd30517c68 to your computer and use it in GitHub Desktop.
Interface Class
package com.tan.example.service;
import com.tan.example.entity.EnterpriseEntity;
import javax.validation.Valid;
import java.util.List;
public interface EnterpriseInterface {
List<EnterpriseEntity> findAllEnterprises();
EnterpriseEntity findEnterpriseById(String id);
EnterpriseEntity createEnterprise(@Valid EnterpriseEntity enterpriseEntity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment