-->
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: How to save map<String, map<String RelExpColumn>>
PostPosted: Mon Mar 14, 2011 10:44 am 
Newbie

Joined: Mon Mar 14, 2011 9:54 am
Posts: 1
Hallo everyone,

there is a property in our project which should be saved in the database:

private map<String, map<String, RelExpColumn>> caches;

I used the Hibernate-Tool to generate Mapping-Konfiguration for this property and got this one:

<map name="caches" table="RELEXPCOLUMN" lazy="true" access="field">
<key>
<column name="M_STRCOLUMN" />
</key>
<map-key type="java.lang.String"></map-key>
<element type="java.lang.String">
<column name="CACHES" />
</element>
</map>

And it does not work because each component of the property caches is also a map. But according to this Mapping-Konfiguration, these components are mapped as String.
Please tell me how to map this property.Thanks.


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.