Fix incremental compilation problem caused by Slick.

This is temporary fix to decrease compilation time in development. Therefore this fix will be reverted in the future to add multiple database support capability.
This commit is contained in:
Naoki Takezoe
2014-07-27 03:31:45 +09:00
parent 34e299bf52
commit 121b6ee641
13 changed files with 17 additions and 22 deletions

View File

@@ -1,9 +1,7 @@
package model
import slick.driver.JdbcProfile
trait Profile {
val profile: JdbcProfile
val profile = slick.driver.H2Driver
import profile.simple._
// java.util.Date Mapped Column Types

View File

@@ -1,10 +1,5 @@
package object model extends {
// TODO [Slick 2.0]Should be configurable?
val profile = slick.driver.H2Driver
// TODO [Slick 2.0]To avoid compilation error about delete invocation. Why can't this error be resolved by import profile.simple._?
val simple = profile.simple
} with AccountComponent
package object model extends Profile
with AccountComponent
with ActivityComponent
with CollaboratorComponent
with GroupMemberComponent
@@ -16,9 +11,11 @@ package object model extends {
with PullRequestComponent
with RepositoryComponent
with SshKeyComponent
with WebHookComponent with Profile {
with WebHookComponent {
/**
* Returns system date.
*/
def currentDate = new java.util.Date()
}