2015-11-12

Objectify and Scala

Objectify and Scala

There are some learning steps to combine Objectify with Scala. One interesting piece of code is Objectify's:
ObjectifyService.ofy().loader().type(EntityClass.class);
It's not possible to type "type" or "class" in Scala. The first one needs to be escaped and the other have a predefined function:
ObjectifyService.ofy().loader.`type`(classOf[EntityClass])

Scala Example

You can find a complete example here:


Inga kommentarer:

Skicka en kommentar