Project Structure - korwe/kordapt GitHub Wiki

Every Kordapt project has a standard project structure as follows.

  • api-definition - Contains a yaml api definition
    • types - Contains all type definitions
      • my
        • company
          • projectName
            • dto - package name correlation
    • services - Contains all service definitions
      • my
        • company
          • projectName
            • services - Yes it seems redundant, package name correlation
  • src
    • main
      • java
        • my
          • company
            • projectName
              • services - Contains all service interfaces
                • adapters - Contains all adapters(for The Core connection)
                • impl - Contains all implementations of service interfaces
              • dto - Contains all Data Transfer Objects
      • resources
        • spring
          • kordapt.xml - Main kordapt bean configuration
          • service-beans.xml - Used for all service bean definitions

Additional Folders/Files

If a database dependency is present:

  • src
    • main
      • resources
        • spring
          • datasource.xml - for configuring your datasource

If an orm plugin has been included:

  • src
    • main
      • java
        • my
          • company
            • projectName
              • domain - For storing domain object models
      • resources
        • spring
          • orm.xml - Used for orm configuration
          • dao-beans.xml - Used for all data access object bean declarations