Entry point

The entry point of a HFactory application is a class that extends class HApp. Note that contrarily to a regular Scala program, an HFactory app is a class rather than an object and it does not have a main() method.

The User Directory app we will use as example throughout this guide is thus defined as follows:

class UserDirectory extends HApp

This is all there is to it: no body is required for the simplest cases where all the app logic comes from its entities.

However, in the body of an application one can: