Ident represents a single variable name, this typically refers to a table but not always.
Invisible identities are a rare case where a user returns an embedded table from a map clause:
case class Emb(id: Int, name: String) extends Embedded
case class Parent(id: Int, name: String, emb: Emb) extends Embedded
case class GrandParent(id: Int, par: Parent)
query[GrandParent]
.map(g => g.par).distinct
.map(p => (p.name, p.emb)).distinct
.map(tup => (tup._1, tup._2)).distinct
}
In these situations, the identity whose properties need to be expanded in the ExpandNestedQueries phase,
needs to be marked invisible.
Ident represents a single variable name, this typically refers to a table but not always. Invisible identities are a rare case where a user returns an embedded table from a map clause:
In these situations, the identity whose properties need to be expanded in the ExpandNestedQueries phase, needs to be marked invisible.