# Where to define common methods on a row?
To define commonly used methods on a row, extend the row using the keyword
extendon a collection in .kmongo.For example:
collection Employee extend { property name:String ... }run command
compiledefine the methods in the generated
RowExtnclasstrait EmployeeRowExtn extends EmployeeRowExtnTrait { row: EmployeeRow => override lazy val age: Int = { ... } def isSenior:Boolean = row.designation == "Manager" }