Trying to split my project to few submodules. I've created submodules: /modules/common /modules/shopping
Now I am trying convert name spaces to new one including new structure.
my controller:
package controllers.common;
public class Index extends Controller {}
my model:
package models.common;
@Entity
public class AppMode {}
my view:
@(AppModeForm: Form[models.common.AppMode], CurrentMode: Boolean)
@helper.form(common.routes.CMS.appModeSubmit, 'id -> "form") {}
And I am getting errors all the time. F.e: an error in view:
reference to common is ambiguous; it is imported twice in the same scope by import controllers._ and import models._
[error] /home/kd/Application/modules/common/app/views/CMS/AppModeView.scala.html:9: reference to common is ambiguous;
[error] it is imported twice in the same scope by
[error] import controllers._
[error] and import models._
[error] @helper.form(common.routes.CMS.appModeSubmit, 'id -> "form") {
[error] ^
[error] one error found