org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found : org/arpit/javapostsforlearning/User.hbm.xml : origin(org/arpit/javapostsforlearning/User.hbm.xml)

Stack Overflow | David J. | 5 months ago
  1. 0

    Mapping (RESOURCE) not found

    Stack Overflow | 5 months ago | David J.
    org.hibernate.boot.MappingNotFoundException: Mapping (RESOURCE) not found : org/arpit/javapostsforlearning/User.hbm.xml : origin(org/arpit/javapostsforlearning/User.hbm.xml)

    Root Cause Analysis

    1. org.hibernate.boot.MappingNotFoundException

      Mapping (RESOURCE) not found : org/arpit/javapostsforlearning/User.hbm.xml : origin(org/arpit/javapostsforlearning/User.hbm.xml)

      at org.hibernate.boot.spi.XmlMappingBinderAccess.bind()
    2. org.hibernate.boot
      MetadataSources.addClass
      1. org.hibernate.boot.spi.XmlMappingBinderAccess.bind(XmlMappingBinderAccess.java:56)
      2. org.hibernate.boot.MetadataSources.addResource(MetadataSources.java:274)
      3. org.hibernate.boot.MetadataSources.addClass(MetadataSources.java:262)
      3 frames
    3. Hibernate
      Configuration.addClass
      1. org.hibernate.cfg.Configuration.addClass(Configuration.java:513)
      1 frame
    4. org.arpit.javapostsforlearning
      HibernateMain.main
      1. org.arpit.javapostsforlearning.HibernateMain.main(HibernateMain.java:14)
      1 frame