The "Session" interface has two methods that, in Scala due to type erasure, are reduced to having the same signature:
public ProcedureCall createStoredProcedureCall(String procedureName, Class... resultClasses)
public ProcedureCall createStoredProcedureCall(String procedureName, String... resultSetMappings)
Trying to implement them gives the error:
error: double definition: method createStoredProcedureCall:(procedureName: String, resultSetMappings: String*)org.hibernate.procedure.ProcedureCall and method createStoredProcedureCall:(procedureName: String, resultClasses: Class[_])org.hibernate.procedure.ProcedureCall at line 199 have same type after erasure: (procedureName: String, resultSetMappings: Seq)org.hibernate.procedure.ProcedureCall override def createStoredProcedureCall(procedureName: String, resultSetMappings: String): ProcedureCall = null ^
So how would I go about implementing this interface in a way that will both compile and work?