Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yaroslav-ulanovych/5999016 to your computer and use it in GitHub Desktop.
Save yaroslav-ulanovych/5999016 to your computer and use it in GitHub Desktop.
package foo
class Entity extends DelayedInit {
def delayedInit(x: => Unit) {x}
class Field
protected def EntityField[T <: Entity: Manifest] = new Field
def find[T <: Entity: Manifest] {
Nil.map(dbo => {
class EntityHolder extends Entity {
val entity = EntityField[T]
}
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment