facebook

removing hibernate capabilities

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #235746 Reply

    PHoldener
    Member

    I have added the hibernate capabilities for hibernate 2 some time ago but did not actually start using hibernate. Now as i actually want to start using it there is the new version hibernate 3 out. I tried to upgrade it manually but I get strange Errors like “cannot convert session to session” in the class SessionFactory. So i thought the easiest way might be to over install hibernate 3 with your “add hibernate capabilities” feature. but this does not show up once you have installed hibernate 2. Is there a way to reactivate that feature?
    regards Peter

    #235783

    Riyad Kalla
    Member

    Peter,
    We would suggest creating a new project, and moving all your files into the new project and then re-activating the Add Hibernate Capabilities on that new project. There is a manual way to remove HIbernate capabilities, but I think it’s easier to use my first suggestion.

    #236457

    Hi!

    It would be nice to support removing capabilities too. Is it possible to implement this in future releases?

    greetings
    Martin

    #236480

    Riyad Kalla
    Member

    Martin removing capabilities is on our todo list for the 5.0 release series because we are completely reworking capabilities.

    #240159

    julie_yaoy
    Member

    We just upgraded ide to eclipse3.1/myEclipse4.02. We are using hibernate 2, and we want to upgrade to hibernate 3. We’d like to keep our current project. Would you please tell us the manual way to remove Hibernate capabilities? We already have those <hibernatedoclet> …. in buildfile.

    #240164

    Riyad Kalla
    Member

    To manually remove Hibernate capabilities you need to:

    ** BACKUP your project just incase **

    1) Switch to your navigator view
    2) Erase the .myhibernatedata file in the root of your project
    3) Edit your .project file and remove the hibernate nature if one is in there.
    4) Remove the HIbernate libraries from your build path and WEB-INF/lib directory. These files may be locked by Eclipse so you might need to restart to get them to erase.

    Now you should be able to re-add Hibernate capabilities now, specifying Hibernate 3.0

    #240178

    julie_yaoy
    Member

    I did the following, but still couldn’t Add Hibernate Capabilities because it is grayed

    2) Erase the .myhibernatedata file in the root of your project
    3) Edit your .project file and remove the hibernate nature if one is in there.
    4) My project is ejb. I remove the HIbernate libraries from the lib and .class
    5) I also removed hibernate related stuff from .xdoclet and xdoclet-build.xml(my buildfile for ejb project)

    I restarted eclipse, and still couldn’t select “Add Hibernate Capabilities”

    Thanks
    Julie

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: removing hibernate capabilities

You must be logged in to post in the forum log in