• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mapping when using List in the value of Map in hibernate  RSS feed

 
Vish Shukla
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to map an attribute of type Map<String, List<Person>> using hibernate. I googled it out and gone through some tutorials & books but couldn't find any clue to map this. Is this possible using Hibernate?

Please help. Thanks in advance.

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Have a read of the Hibernate documentation - always the best place to find answers like this.
 
Vish Shukla
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Thanks for prompt reply. I tried to get solution from this but I felt its too abstract for me to interpret and get it done.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!