Related questions
Difference between object and class in Scala
I'm just going over some Scala tutorials on the Internet and have noticed in some examples an object is declared at the start of the example.
What is the difference between class and object in Scala?
Scala equivalent of Java java.lang.Class<T> Object
The question is best explained by an example:
In Java for a JPA EntityManager, I can do the following(Account is my Entity class):
Account result = manager.find(Account.class, primaryKey);
In Scala, my naive attempt is:
val result = manager.…