I am trying to create multi submodule project in PlayFramework (play framework 2.2.1).
How should I name package in submodules?
F.E. I have structure as follow:
- app
- conf
- doc
- logs
- modules:
- common:
- app:
- controllers
- models
- views
- conf:
- common.routes
- build.sbt
- app:
- project
- public
- target
- test
How package (namespace) I should named in file:
/modules/common/app/controllers/Aplication.java
Which one should it be:
package controllers;
package controllers.common;
package common.app.controllers;
actually I have like that:
package controllers.common;
public class Index extends Controller {}
The same issue I have with my model classes in submodules. F.e. in file: /modules/common/app/models/User.java
Which one should it be:
package models;
package models.common;
package common.app.models;
actually I have like that:
package models.common;
public class User {}
runtime error that I get:
[IllegalArgumentException: Unknown entity: models.Cart]