-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Mapping a Collection containing a Collection
PostPosted: Fri Jul 11, 2008 6:45 am 
Newbie

Joined: Tue May 06, 2008 8:24 am
Posts: 2
I have a class that needs to be persisted. The class contains a java.util.List of objects, each of which contains a java.util.Map.

I have fought and struggled with this for a long long time, searched high and low but cannot for the life of me work out how to persist such a class using Hibernate (3.2.6ga).

Class example
Code:
public class ComponentClass {
   
    private Map<Locale, String> translations = new HashMap<Locale, String>();

...

}

public class PersistableClass {

    private String id;
    ...
    private List<ComponentClass> languageSensitiveComponents;

}


I can quite happily map a List and quite happily map a Map, but mapping the above has eluded me.

Thanks in advance[/code]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.