further improvements to Relation

This commit is contained in:
Timo Westkämper 2011-11-16 20:59:50 +02:00
parent 9d682e5f81
commit 5d52b042bf
3 changed files with 3 additions and 5 deletions

Binary file not shown.

View File

@ -6,11 +6,9 @@ import com.mysema.query.sql._
* To be used with RelationalPath companion objects for access to the default path
*
* @author tiwe
*
* @param <T>
*/
trait Relation[T] {
trait Relation[P <: RelationalPath[_]] {
def path: RelationalPath[T]
def path: P
}

View File

@ -47,7 +47,7 @@ class ScalaMetaDataSerializer @Inject() (typeMappings: TypeMappings, val namingS
}
override def enhanceCompanionClass(name: String, modelName: String) = {
name + " extends Relation[" + modelName + "]"
name + " extends Relation[" + name + "]"
}
override def writeAdditionalCompanionContent(model: EntityType, writer: ScalaWriter) = {