-->
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.  [ 2 posts ] 
Author Message
 Post subject: mapping Map<String,String> as <varchar(l),Clob>
PostPosted: Wed Nov 29, 2006 1:08 pm 
Newbie

Joined: Wed Nov 29, 2006 12:55 pm
Posts: 1
hello,

i'm looking for the right way to map a Map<String,String> with the key becoming a varchar() and the value becoming a clob.

i tried this:

Code:
@CollectionOfElements
@Lob
@MapKey(columns = @Column(length = 32))
private final Map<String,String> properties = new HashMap<String,String>();


but this just ignores the @MapKey annotation and makes the key a clob too.

thanks for your help!

eskalator


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 18, 2007 11:15 am 
Newbie

Joined: Thu Mar 01, 2007 5:02 pm
Posts: 8
I realize the above post is from almost a year ago, however I am facing exactly the same issue and would like to know if anyone is aware of a solution. Thanks!


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

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.