scalikejdbc/scalikejdbc — pull request #274 by gakuzzzz (2014-08-20 16:33:03+00:00)
Title: Added excludes parameter into autoConstruct

This PR enables the following codes

```scala
// excludes association fields
case class Person(id: Long, name: String, organizationId: Option[Long], organization: Option[Organization] = None)
object Person extends SQLSyntaxSupport[Person] {
def apply(s: SyntaxProvider[Person])(rs: WrappedResultSet): Person = autoConstruct(s, rs, "organization")
}
```

```scala
// compile error with unknown fields
object Person extends SQLSyntaxSupport[Person] {
def apply(s: SyntaxProvider[Person])(rs: WrappedResultSet): Person = autoConstruct(s, rs, "organization", "test")
}
```