Using KeyedEntity leads to error "Column specified twice" while inserting new row
Leave a comment
on 2011-04-12 03:52 *
By maxime.levesque
It is probably bad practice to have redundant columns, maybe not a bug,
need to decide......
case class User(username: String, password: String, surname: String,
givenname: String, email: Option[String],
phonenumber: Option[String],
isEnabled: Boolean, rolename: String) extends
KeyedEntity[String] {
@Column("username")
val id: String = username
def this() = this("", "", "", "", Some(""), Some(""), false, "")
}
need to decide......
case class User(username: String, password: String, surname: String,
givenname: String, email: Option[String],
phonenumber: Option[String],
isEnabled: Boolean, rolename: String) extends
KeyedEntity[String] {
@Column("username")
val id: String = username
def this() = this("", "", "", "", Some(""), Some(""), false, "")
}