在使用Spring-Data MongoDB尝试将Object保存到mongo数据库时,我得到了这个异常。如何在spring数据中使用@DocumentField来消除歧义mongoDB
Ambiguous field mapping detected! Both <child class field> and <parent class field> map to the same field name <field name>! Disambiguate using @DocumentField annotation!
我隐藏在子类中的字段,这是造成问题。但这对于我隐藏在超类中声明的字段是至关重要的。我无法在任何地方找到@DocumentField注释。我怎么能在这里继续?还有其他解决方案吗?
我有同样的问题,因为我想存储在MongoDB中都和Neo4j的基本类型。你解决了这个问题吗? – 2015-02-05 15:06:31