2015-11-18

Mix Scala with Java

Scala POJO

Since POJOs with annotations with the need of Java primitives end up ugly:
https://github.com/AIMMOTH/endpoints-objectify-oauth2-scala-scalajs/blob/master/src/main/scala/io/cenet/datastore/entity/ListEntity.scala

Scala using POJO

It's nicer to mix in pure Java when writing Scala using Java classes. Example:
https://github.com/AIMMOTH/endpoints-objectify-oauth2-scala-scalajs/blob/master/src/main/java/io/cenet/datastore/entity/JavaEntity.java

Inga kommentarer:

Skicka en kommentar