-->
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: No persister for: java.util.HashMap
PostPosted: Wed Jul 07, 2004 1:36 pm 
Newbie

Joined: Tue Apr 13, 2004 10:21 am
Posts: 5
Hi,

My application is using Spring+Hibernate with Mysql.
I'm tesing my dao with dbunit.
The test saving the domain object (contening a map) fail because of the thrown exception :

org.springframework.orm.hibernate.HibernateSystemException: No persister for: java.util.HashMap; nested exception is net.sf.hibernate.MappingException: No persister for: java.util.HashMap
net.sf.hibernate.MappingException: No persister for: java.util.HashMap
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)

The Test loading the domain object succed.

What's wrong ?
Don't Hibernate support HashMap ?
Does I need to use a special Implementation of Map ?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 09, 2004 2:59 pm 
Newbie

Joined: Fri Jul 09, 2004 2:56 pm
Posts: 1
Location: Portland, OR
Hibernate can persist instances of java.util.Map, java.util.Set, java.util.SortedMap, java.util.SortedSet, java.util.List, and any array of persistent entities or values. Properties of type java.util.Collection or java.util.List may also be persisted with "bag" semantics.


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.