Add support for using the Scala mutable collection types of Buffer, Set and Map instead of the Java types of List, Set and Map.
package test.s.m import javax.persistence._ import com.avaje.ebean._ import scala.reflect._ import scala.collection.mutable._ /** * Customer entity bean. */ @Entity @Table(name="o_customer") class SCustomer { @Id var id:Option[Int] = None; var name:String = null; var smallnote:Option[String] = None; @OneToMany(mappedBy="customer") @JoinColumn(name="customer_id") var contacts:Buffer[SContact] = null; } object SCustomer extends SDao(classOf[SCustomer]) { }
Note:
var contacts:Buffer[SContact] = null;
The contacts type is a scala mutable Buffer rather than a java list.
fixed in HEAD.