java 如何在JPA中存储hashmap
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14494461/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to store hashmap in JPA
提问by pradeepds
I want to store a hashmap which contains a String key and a class as a value with JPA. Something like below:
我想存储一个哈希图,其中包含一个字符串键和一个类作为 JPA 的值。像下面这样:
Map<String, Person>
回答by TechSpellBound
These can help you :
这些可以帮助您:
JPA Map<String,String> mapping
How to add a Map<String, Person> in an entity class?
如何在实体类中添加 Map<String, Person>?
Please do your study and search before you put a question out here next time!
下次在这里提出问题之前,请先进行研究和搜索!