[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Entity bean & java.util.Map

mr_d do-not-reply at jboss.com
Mon Aug 27 04:52:14 EDT 2007


Hello, 

I don't know if I'm in the wrong forum, if it is the case, sorry for the inconvenience.
I have a little problem with a property of an entity bean.
I'm using EJB3, Jboss 4.2.0 GA. and Java 1.5

I need to have on an entity bean a Map<String, String>. When I deploy, I have the following error:

  | javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.Map
  | 

Now, if instead of a Map<String, String>, I use a Map<String, X> where X is also an entity bean, it works.
So I can solve my problem with a second entity bean, but I don't really need it. It would be more clear to use a Map<String, String> in my case.

Anyone has any ideas?
Thanks in advance,

:oD.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078257#4078257

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078257



More information about the jboss-user mailing list