Skip to content

Process to create new entity and all repository, service and rest specific classes and config files

Tatjana Kopalova edited this page Jul 20, 2016 · 5 revisions

procedure description

  • create a entity

  • create a factory method for the entity

  • create a repository(dao class)

  • create a business service interface

  • Add business service interface to service locator

  • create implementation of business service interface

  • add new Method to the HqlStringCreator for use in find method in implementation of business service interface

  • create a corresponding domain object to the entity for use in rest services

  • create a mapper class for map from entity to domain and back

  • add new entity class to the persistence.xml

  • add new test entries in the insert script for unit testing

#Optional if needed for rest resources

  • create a domain service interface

  • create implementation of domain service interface

  • create a RestfulResource interface

  • create implementation of RestfulResource interface

  • create a RestClient if not exists that extends the AbstractRestClient

  • Add RestfulResource interface as attribute to the RestClient and initialize in constructor

  • Add RestfulResource interface to the web-application-context.xml