`
biaoming
  • 浏览: 266562 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

请教compass如何映射java.util.Map类型

    博客分类:
  • java
阅读更多
现在实体设计有需要用到java.util.Map,但是在这个属性加@SearchableComponent就报but no class mapping was found for [java.util.Map],具体的信息如下:

Caused by: org.compass.core.mapping.MappingException: Tried to resolve ref-alias for property [articles] in alias [test], but no class mapping was found for [java.util.Map]

这个错误是因为compass不支持map类型吗?有什么思路可以解决,谢谢!

我的配置如下:
@SearchableComponent
@OneToMany(mappedBy="test")
@MapKey(name="title")
public Map<String, Article> getArticles() {
return articles;
}

分享到:
评论
2 楼 biaoming 2008-01-20  
自己写了一个converter就行了.哈哈.
1 楼 biaoming 2007-11-09  
ERROR BasicPropertyAccessor.get(136) | IllegalArgumentException in class [test.User], getter method of property [id]

现在启动是这样的错,是什么造成的呢?

相关推荐

Global site tag (gtag.js) - Google Analytics