0 Replies Latest reply on Oct 12, 2011 10:48 AM by jbholland

    getting hibernate-tutorial to work

    jbholland

      I found that the hibernate-tutorial folder (provided on the VM image) was a Maven project. So I tried to run "mvn test" on it. It was missing an hbm.xml file where it wanted to see it. I found that the following commands enable it to run through the test target with no errors.

       

      cd ............hibernate-tutorials   wherever yours is located

        mkdir -p basic/src/test/resources/org/hibernate/tutorial/hbm/

      cp basic/src/test/java/org/hibernate/tutorial/hbm/Event.hbm.xml  \

      basic/src/test/resources/org/hibernate/tutorial/hbm/

      ~                                                                              

      ~                                                                              

      ~                                                                              

      ~