This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Sql2oSelectTest { | |
| companion object : KLogging() // I'm using this for loging | |
| // just a simple Data class for testing purposes.. | |
| data class EmployeesAndIntroductions(var id: Int?, var firstname: String?, var lastname: String?, var role: String?, var introductionname: String?) | |
| fun getEmployeesAndIntroductions(req: Request, res: Response): String { | |
| try { | |
| val sql = "select employee.id, " + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // just a simple data class to use with this demo... | |
| data class Buildingsite(var name: String?, | |
| var siteId: String?, | |
| var description: String?, | |
| var status: String?) | |
| class KotlinSql2oInsert { | |
| companion object : KLogging() // using this for logging.. |