facebook

need help with hibernate [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #210135 Reply

    is there any documentation about the hibernate integration in ME ???

    a tutorial would also be helpfull.

    maybe someone is gonna write a small tutorial.

    p.s.: i’m new to eclipse and myeclipse, never used hibernate, our company is going to migrate from lotus domino to java (j2ee) need fast response please cause i’m preparing a workshop for our developers to migrage to myeclipseide (we got 2 licenses yet)

    thanx in advance
    alex

    —————————————————————————————–
    Eclipse:
    Version: 3.0.0
    Build id: 200406192000

    MyEclipse:
    Version: 3.7.200
    Build id: 200407091200-3.8-Beta2

    #210143 Reply

    Riyad Kalla
    Member

    Alex,
    Not currently, but documentation and tutorials is going to become numero uno priority after 3.8 GA comes out.

    #210248 Reply

    balusanisri
    Member

    I am trying to use hibernate with Myeclipse beta2. But I can not see anywhere how to create .hmb.xml from database schema. Is there anyway I can do that in the currect relase? If so can someone explain me?
    And also how can I generate jave code from hmb files?
    Thanks for your help.

    #210256 Reply

    Riyad Kalla
    Member

    You can use the DB explorer tool to connect to your DB, then Export to Hibernate from that. Look at turning on some of the MyEclipse views under Window > Show Views > Other… > MyEclipse

    #210262 Reply

    balusanisri
    Member

    Thansk for your reply. When I try to connec to the database I am getting
    oracle.jdbc.driver.OracleDriver error.
    It doesnt give any more information in the error dialogue.
    The dirver jar file is in the classpath . And for testing purpose I added that to the system classpath for eclipse.
    In either case it doesnt work.
    Am I missing anything here?

    #210263 Reply

    Riyad Kalla
    Member

    Does the oracle driver have a DLL portion to it, or is a pure Java driver? If it does rely on a DLL, you can look here to see how to install it correctly on your system:
    http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-14.html#105

    #210264 Reply

    snpe
    Member

    You have to define driver for database in Windows-preferences-myeclipse-
    Database explorer-drivers (add jdbc jar – you can select jdbc jar form file system)
    Then open DB Explorer perspective and create profile with this driver
    – open connection
    – select schema – tables and click right mouse on table
    – choose export to hibernate

    It create .hbm and java POJO class for this , but use deprecated Map Generator from hibernate-extensions – generator don’t recognize primary key, don’t generate composite-id etc.

    regards

    #210265 Reply

    Riyad Kalla
    Member

    Ahh yes, use snpe’s suggestion first if you haven’t done so already (thank you for the post snpe)

    #210274 Reply

    balusanisri
    Member

    That works …

    Thanks a lot for the help by both of you guys

    #210275 Reply

    Riyad Kalla
    Member

    Great, glad to hear it.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: need help with hibernate [Closed]

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