Monday, November 17, 2014

Hibernate-2 programs

Deal all please check below link:

Hibernate-2 App Source


  1. After downloading the above rar file unrar it and create new hibernate project and add all source files into src folder.
  2. After that add Hibernate jar files and database vendor jar file(driver jar) to classpath.
  3. Once it is done execute the programs.
If any of you find issues please post the query in comments.

Thanks & regards,

Vikram Y.

2 comments:

  1. good evening sir,
    when i tried to execute the hibernate application,
    i am getting mapping error could you please resolve or just re-comment me,

    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.naresh.employee.dao.EmployeeDAO.(EmployeeDAO.java:15)
    at EmployeeService.main(EmployeeService.java:13)
    Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister



    thanking you sir,

    ReplyDelete
    Replies
    1. actually
      this exception was from "hibernate 1 example" unexpectedly posted here

      thanks

      Delete