title: Scala timestamp/date zero argument constructor?
body: <p>Squeryl requires a zero argument constructor when using <code>Option[]</code> in fields. I realized how I could create such a constructor for <code>Long</code> like <code>0L</code> but how do I create such a thing for a Timestamp or Date?</p>
  
  <p>Essentially I need to finish this:</p>
  
  <pre><code>def this() = this(0L,"",TIMESTAMP,TIMESTAMP,0L,"","","","",Some(""),Some(""),"",DATE,DATE,false,false,false,Some(0L),Some(0),Some(0L))
  </code></pre>
  
  <p>Below is how I originally found the timestamp and date problem.</p>
  
  <p><strong>Background</strong></p>
  
  <p>Getting the following error in my Play! 2.0 Scala app (also using Squeryl):</p>
  
  <p><code>Caused by: java.lang.RuntimeException: Could not deduce Option[] type of field 'startOrder' of class models.Job</code></p>
  
  <p>This field in models.Job:</p>
  
  <pre><code>@Column("start_order")
  var startOrder: Option[Int],
  </code></pre>
  
  <p>And in the Postgres DB it is defined as an <code>integer</code>. Is there different handling in Play! 2.0 of models, is this a bug, or is it a Squeryl problem? Thanks!</p>
  
  <p><strong>Stack trace, looks like Squeryl problem</strong></p>
  
  <pre><code>Caused by: java.lang.RuntimeException: Could not deduce Option[] type of field 'startOrder' of class models.Job
          at scala.sys.package$.error(package.scala:27) ~[scala-library.jar:na]
          at scala.Predef$.error(Predef.scala:66) ~[scala-library.jar:0.11.2]
          at org.squeryl.internals.FieldMetaData$$anon$1.build(FieldMetaData.scala:441) ~[squeryl_2.9.1-0.9.4.jar:na]
          at org.squeryl.internals.PosoMetaData$$anonfun$3.apply(PosoMetaData.scala:111) ~[squeryl_2.9.1-0.9.4.jar:na]
          at org.squeryl.internals.PosoMetaData$$anonfun$3.apply(PosoMetaData.scala:80) ~[squeryl_2.9.1-0.9.4.jar:na]
          at scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:176) ~[scala-library.jar:0.11.2]
  </code></pre>