Home  >  Forum  >  Hibernate
Post New Query

Could not determine type for: java.util.Map, at table: for columns


joined on
May 23,2013
Asked on May 23,2013
Hello Friends,

I am new to hibernate and trying to run a hibernate program in which I need to return a map from an entity. I am getting below error, any clue?

    Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Map, at table: for columns
    at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:291)
    at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:275)
    at org.hibernate.mapping.Property.isValid(Property.java:217)
    at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:464)
    at org.hibernate.mapping.RootClass.validate(RootClass.java:236)
    at org.hibernate.cfg.Configuration.validate(Configuration.java:1193)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1378)
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:954)

   
    

joined on
May 23,2013
Replied on May 23,2013

Hey error shows that it is not getting type. I think you are missing mapping to the entity. Use a mapping like @OneToMany(cascade=CascadeType.ALL).
joined on
May 23,2013
Replied on May 23,2013

Write Answer









Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us