直截了当的问题,有人知道如何使用链接到mongoDB数据库的morphia进行通配符查询吗?下面是mongo语句的样子:SQL:SELECT * FROM users WHERE name LIKE "%Joe%"Morphia:ds.find(File.class, "filename","/test/").order("
mongo morphia basicDAO.save()基本上做到了Saves the entity; either inserting or overriding theexisting document
如果entity.id不为空,morphia会尝试覆盖现有文档,有没有办法让morphia抛出一个复制的键异常(就像mongodb那样)?