facebook

MyEclipse with JBoss IDE

  1. MyEclipse IDE
  2.  > 
  3. Comments
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #252675 Reply

    macinsmith
    Member

    I need to use some of the Hibernate tools like the reverse engineering tool, so I installed JBoss IDE, now MyEclipse and JBoss IDE seem to be fighting over ownership of the hibernate.cfg.xml. I see two of many of the properties. How do you suggest working with both? I’m using the 4.1 release with Eclipse 3.1.2

    Stephen Smith

    #252681 Reply

    Brian Fernandes
    Moderator

    Stephen,

    I would suggest upgrading to 4.1.1 since 4.1.1 added many improvements and fixes in the DB and Hibernate space.

    4.1.1 also makes it easier for you to use JBoss IDE and MyEclipse together in the same eclipse installation. 4.1.1 includes reverse engineering capability and our first release in the 5.0 stream (5.0M1) includes an HQL editor too.

    I see two of many of the properties.

    MyEclipse will not add properties to your hibernate configuration file unless you explicitly use our editor, even so, it should replace existing properties, not add new ones.

    I believe there might be some problem with a “hibernate.” prefix that the JBoss cfg editor might use (I need to check this). If you stick to a single editor, you should not have any problems.

    Let us know if you require further assistance.
    Best,
    Brian.

    #252742 Reply

    macinsmith
    Member

    I’m not finding the documentation regarding how to use reveng with MyEclipse. Where can I find it? I have a database schema that I would like to use with Hibernate and I need to have reveng create the POJOs.

    Stephen

    #252743 Reply

    Brian Fernandes
    Moderator

    Stephen,

    Here is a link: http://www.myeclipseide.com/images/tutorials/quickstarts/hibernate/
    Some of the screenshots will be different from what you see in 4.1.x as these wizards have been changed and substantially improved, but the basic process remains the same.

    You will also find this documentation integrated into Eclipse if you choose Help > Help Contents > MyEclipse Learning Center > Spring / HIbernate Development.

    let us know if you require further assistance,
    Best,
    Brian.

    #252750 Reply

    macinsmith
    Member

    Brian,

    I’ve been through the document several times, yet I don’t find any references to Reveng or a comparable tool. The Hibernate quickstart document you referenced doesn’t appear to document generating the POJOs from the schema. Both the Hibernate Quickstart and the Database Explorer Document reference MyEclipse 4.0, yet I believe that your release notes indicate that support for reveng was done in 4.1.

    Stephen

    #252754 Reply

    Haris Peco
    Member

    Stephen,

    Please, open Db Explorer, make connection profile, choose some tables, right click and call ‘Create hibernate mapping’ action

    Best

    #252756 Reply

    Brian Fernandes
    Moderator

    Stephen,

    Let me point you the the exact location. Help > Help Contents > MyEclipse Learning Center > Spring / Hibernate Development > Getting Started > Hibernate Development.
    Once you open that document, go to section 5.4. That section walks you through reverse engineering a database.

    Reverse engineering support has been in our product since version 3.8.x. The wizards have been changed in version 4.1, but all the features mentioned in the document are sitll present, and more features have been added. They are pretty easy to use or you may just ignore them. I know our documentation is in dire need of updation, and I apologize for the lag, but the above should get you going.

    In brief, RE is a simple process. Select your tables, bring up the context menu (right click) and choose “Create Hibernate Mapping”. Select a hibernate project and press finish.

    Best,
    Brian.

    P.S
    A few notes about features that succeed the documentation above can be found in our New and Noteworthy documents:
    http://www.myeclipseide.com/ContentExpress-display-ceid-78.html
    and
    http://www.myeclipseide.com/ContentExpress-display-ceid-70.html (see Hibernate DB Rev-eng Wizard enhancements about half way down this document)

    #252858 Reply

    macinsmith
    Member

    This was helpful and worked. You are right, the documentation is in dire need of “updation”. A global index would be helpful even with the documentation in it’s current state.

    Stephen

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: MyEclipse with JBoss IDE

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