me pareció simple ejemplo:Scala con el uso de palabras clave
class Post extends LongKeyedMapper[Post] with IdPK {
def getSingleton = Post
object title extends MappedText(this)
object text extends MappedText(this)
object date extends MappedDate(this)
}
object Post extends Post with LongKeyedMetaMapper[Post] {
def getPosts(startAt: Int, count: Int) = {
Post.findAll(OrderBy(Post.date, Descending), StartAt(startAt), MaxRows(count))
}
def getPostsCount = Post.count
}
¿Qué significa with IdPK
?
Gracias.
Gracias, me olvidé de los rasgos en scala. –
¿Cuál sería el verbo UML para una relación "con"? "tiene", "incluye" ... – Ricardo