i want define a hibernate PersistentSet for scala mutable Set, but i have this compile error :-(
class MySet extends org.hibernate.collection.internal.AbstractPersistentCollection with collection.mutable.Set[Any] {
...
}
error:
incompatible type in overriding
def empty(): Boolean (defined in class AbstractPersistentCollection);
found : scala.collection.mutable.Set[Any]
required: (): Boolean
override def empty: mutable.Set[Any] = ???
if there's a good way to fix it.