mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-24 21:07:26 +08:00
further improvements to Relation
This commit is contained in:
parent
9d682e5f81
commit
5d52b042bf
Binary file not shown.
@ -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
|
||||
|
||||
}
|
||||
@ -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) = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user