I am using java API that looks like:
import com.google.code.morphia.Morphia;
.....
val morphia = new Morphia();
morphia.map(Hotel.class).map(Address.class);
but it gives scala compiler error.
what is the correct code in scala for above? Note that .map is defined as part of
morphia API and not to be confused with scala map.
Assuming your problem is with the
.classparts, the Scala equivalent ofHotel.classwould beclassOf[Hotel], likewise forAddress.Hopefully this should fix your problem, although it’s hard to tell without seeing the full compiler output.