boseAbhishek

1

votes
1

answer
303

views

Scala Class body or primary constructor body

It's a very basic question. Out of curiosity, I wanted to know whether in the below code: class A(str: String) { //body here... } is it Scala Class body or primary constructor body or instance initializer body (like Java)?
boseAbhishek
1

votes
1

answer
474

views

Ignore JSON field Play Controller Scala

I have a situation where I have an incoming data model as case class Person(name: String, age: Int, contact: Int) But, I want to ignore the name property as I would not be receiving it but I need it to persist it in DB which I am injecting in later. One option could be to make it optional but in th...
boseAbhishek