I am using morphia plugin for play framework and my code is in scala. The documentation of this plugin:
I currently have a model that has an array of objects of the same type as a field. These objects in the array can have their own children of the same type, and so on.
Both Morphia and MongodD开发者_运维问答B Module in play framework are wrappers around Java driver for MongoDB.
There is a tutorial http:开发者_运维知识库//code.google.com/docreader/#p=morphia&s=morphia&t=QuickStart
Is it based on mongoDb java driver ? Can I use it when the domain model is scala program in version 1.2.2RC1+ of play framework?
I am following a tutorial mention on code.google, but my example fails giving the following trace : java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
I have the following Play Framework entity (using Morphia for persistence) as part of a generic blogging app:
1 @Entity public class Blog { @Id ObjectId id; @reference User author; String content; } or 2 @Entity public class Blog {
I found this problem when I use Morphia in scala. It checks the fields of a class by reflection, and get necessary type information for mapping.
Closed. This question is opinion-based. It is not 开发者_如何学Ccurrently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citatio