- This topic has 7 replies, 3 voices, and was last updated 18 years, 6 months ago by macinsmith.
-
AuthorPosts
-
macinsmithMemberI 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
Brian FernandesModeratorStephen,
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.
macinsmithMemberI’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
Brian FernandesModeratorStephen,
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.
macinsmithMemberBrian,
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
Haris PecoMemberStephen,
Please, open Db Explorer, make connection profile, choose some tables, right click and call ‘Create hibernate mapping’ action
Best
Brian FernandesModeratorStephen,
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)
macinsmithMemberThis 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
-
AuthorPosts