# Various types of seed-code available
Seed-code to create a data defined in kdata file.
Example: class Lottery.scala inside src-gen has the following seed code:
/* lotteryName = abc.lotteryName, amount = abc.amount, participantList = abc.participantList, winner = abc.winner, status = abc.status */Seed-code to create a row object defined as a collection in kmongo file.
Example: class LotteryReadRow inside src-gen has the following seed code:
/* _id = abc._id, lotteryName = abc.lotteryName, amount = abc.amount, participantList_oidList = abc.participantList_oidList, winner = abc.winner, open = abc.open */Play api seed-code available.
Example: class LotteryWebReaderTrait inside src-gen has the following seed code where 2 ways of defining the api is given:
/* override def lotteryList:Request[LotteryListView.Pre] => List[com.metastay.lottery.data.Lottery] = LotteryListView { import LotteryListView._ request:Request[Input] => ?? // val input = request.body; List[com.metastay.lottery.data.Lottery] } OR ( if you want to access pre) override def lotteryList:Request[LotteryListView.Pre] => List[com.metastay.lottery.data.Lottery] = LotteryListView.pre { import LotteryListView._ request:Request[Pre] => ?? // val pre = request.body; val input = pre.input; List[com.metastay.lottery.data.Lottery] } */