Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8694407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:46:52+00:00 2026-06-13T00:46:52+00:00

Environment Ubuntu 12.04 LTS Eclipse Juno 4.2 Build id: 20120614-1722 GWT SDK – 2.4.0

  • 0

Environment

  • Ubuntu 12.04 LTS
  • Eclipse Juno 4.2 Build id: 20120614-1722
  • GWT SDK – 2.4.0
  • App Engine SDK – 1.7.2
  • Hibernate Version 3.5
  • JRE: java-7-openjdk-amd64

In reference to @mael comment, Hibernate Tools was installed from the following Eclipse repo:
http://download.jboss.org/jbosstools/updates/stable/indigo/

Problem

The project is a GWT Web Application that uses Hibernate as the entity/persistence manager. I have successfully configured Hibernate to connect to the database, and it pulls in all the tables and associated columns I am interested in. I use Hibernate to reverse engineer the entity/persistence classes; it runs successfully, but I get the import errors in the newly generated classes:

  • The import org.hibernate.LockMode cannot be resolved.
  • The import org.hibernate.SessionFactory cannot be resolved.
  • The import org.hibernate.criterion.Example cannot be resolved.

Research/Troubleshooting

There was similar problem I found here. I performed the search for the aforementioned classes, and did not find them. I then readded java-7-openjdk-amd64 JRE under Windows > Preferences > Installed JREs. This did not resolve the problem.

Also, there does not seem to be very much out there for this problem. So I am assuming there is something I have not understood in the setup of Hibernate and reverse engineering.

Another Similar Problem – Same Solution

Update: Solution

  1. Following @mael’s solution, I confirmed that Hibernate Tools does not automatically include the Hibernate jar files required for the auto-generated entity/persistence classes.
  2. Downloaded the Hibernate4 jar files from the following location.
  3. Extracted files to the Eclipse workspace.
  4. In Eclipse, right-click on {Project} and go to Build Path > Configure Build Path… > Java Build Path.
  5. Click on the Libraries tab.
  6. Click on Add External JARs…
  7. Go to directory where Hibernate4 JAR files were extracted, and follow the path to lib > required.
  8. Select all JAR files in the folder and confirm.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:46:53+00:00Added an answer on June 13, 2026 at 12:46 am

    You may want to check your eclipse Build Path.

    Right-click your project and navigate Build Path>Configure Build Path and in the tab libraries look for the Hibernate library, if you do not see it then download the jars manually or optionally use maven or ant to do this.

    I don’t remember if Hibernate Tools incorporates the Hibernate jars in the eclipse set of libraries. But if it doesnt, it should I guess.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

recently I update my Android SDK to 14.0.0 Environment: Ubuntu 10.04, Eclipse Helios. The
Following is my environment: Linux, Ubuntu C++/gdb Eclipse I am implementing a TCP socket
environment: Ubuntu 9.10 Eclipse eclipse-jee-galileo-SR2-linux-gtk When I login the ubuntu,and run the eclipse, it
I recently set up a j2ee development environment under Ubuntu: Eclipse (Helios) with the
I've got the following build environment : Ubuntu Java 1.6.0_24 Apache ant 1.8.2 Jenkins
I have an environment setup on Ubuntu 10.04 LTS to run a Django website
I previously used bash on ubuntu 10.04 LTS as my default shell environment. Recently
Environment Ubuntu 10.10 Eclipse Java EE Indigo Service Release 1 Subclipse 1.8.x libsvn1 1.6.12
I recently upgraded to Ubuntu 10.04 LTS and refreshed my Python environment. I installed
My development environment: Ubuntu 9 Ruby 1.9.1/1.8.7 (rvm) Rails 2.3.5 Mysql 5.0 Apache Passenger

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.