0 Replies Latest reply on Aug 27, 2007 4:52 AM by Jean Louis

    Entity bean & java.util.Map

    Jean Louis Newbie

      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.