Search code examples
javaeclipsehibernate

Unable to import hibernate configuration file in eclipse


I've used Eclipse Helios with Hibernate Tools installed. Everything worked fine. Now I've changed to Eclipse Kepler. Looks like it has the Hibernate Tools also installed as I'm able to change to Hibernate perspective. When I'm trying to import my old project Hibernate Configurations(as shown here). The option to import Hibernate Configuration file does not appear. Here is the image of how my import dialog looks like:

enter image description here


Solution

  • I think you can achieve what you need in this way too:

    1. Click on the + icon you see highlighted in the top-left corner in the pic
    2. Setup all the information for your specific case
    3. Click on Setup ...
    4. Click on Use existing ...

    Import Existing Hibernate Configuration file

    Hope this will be useful!