-->
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: Hibernate Mapping Map<String,String>
PostPosted: Thu Aug 27, 2015 10:17 am 
Newbie

Joined: Thu Aug 27, 2015 10:11 am
Posts: 1
Hello,
i use Hibernate 4.3.11 with H2 Database. I have a class in Java with several maps with annotations. Persisting works fine but my map in my H2 Database has no entries. What can be wrong?

Thanks.

Code:
@ElementCollection
@MapKeyColumn(name = "key")
@CollectionTable(name = "value", joinColumns = @JoinColumn(name = "sabilanz_id"))
@Column(name = "value")
private Map<String, String> sonstAnlagen;


My H2 Output

select * from saBilanz_sonstanlagen;
SABILANZ_ID VALUE KEY
(keine Datensätze, 8 ms)


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.