title: Where does one place a scala file in the Play Framework 2.0 so that it is compiled as part of the default package?
body: <p>I am new to Play and Scala, and I am reading <a href="http://www.manning.com/hilton/">Play for Scala</a> from Manning press.  I would like to use the instructions to use Squeryl instead of Anorm. </p>
  
  <p>The book mentions that I need to initialize Squeryl in a class that extends GlobalSettings.</p>
  
  <pre><code>import org.squeryl.adapters.H2Adapter
  import org.squeryl.{Session, SessionFactory}
  import play.api.db.DB import play.api.{Application, GlobalSettings}
  
  object Global extends GlobalSettings {
      SessionFactory.concreteFactory = Some(() =&gt;
      Session.create(DB.getConnection()(app), new H2Adapter) ) 
  ...
  </code></pre>
  
  <p>As this is an early edition (MEAP) it is not clear about where to place this code...
  So I after a little digging on the play site I found the following <a href="http://www.playframework.org/documentation/2.0/ScalaGlobal">example</a> that extends GlobalSettings </p>
  
  <pre><code>import play.api._
  
  object Global extends GlobalSettings {
  
      override def onStart(app: Application) {
          Logger.info("Application has started")
      }  
  
      override def onStop(app: Application) {
          Logger.info("Application shutdown...")
      }  
  
  }
  </code></pre>
  
  <p>The play example gives a little more help but I am still unable to follow the directions, which state : This object must be defined in the default (empty) package.</p>
  
  <p>Which leads to my question: Where does one place a scala file in the Play Framework 2.0 so that it is complied as part of the default package?</p>
  
  <p>Thanks for any help...</p>