- This topic has 11 replies, 2 voices, and was last updated 16 years, 11 months ago by Loyal Water.
-
AuthorPosts
-
fermataintlMemberI am in learning mode using your reverse engineering tools for hibernate. I have a mysql database that I created a tone of classes for. I’ve been poking around the menus and under New… Other… MyEclipse -> Hibernate there are 2 entries (I am using 6.01 GA) and every time I click on either one, a dialog pops up but does not allow me to do anything. How granted, maybe I’m not supposed to be doing anything with these. But this is what happens:
1) Hibernate Configuration File — it just says “configuration file path not specified” and doesn’t allow me to enter anything valid, at least as far as I can tell.
2) Session Factory — the project pulldown is disabled and the various buttons (New, Browse) do nothing.
What’s up with these?
Thanks
Dean
Loyal WaterMemberDean,
These options have been provided to defind the hibernate.cfg.xml file and the session factory for your hibernate project. You might want to add these later to your hibernate project. When you run through the Add Hibernate capabilities wizard, you will notice these steps have been integrated in the process. You can go thorugh a hibernate tutorial to get a better understanding of how these fit in.
fermataintlMemberThanks.
BTW, the hibernate.cfg.xml disappeared (for all I know, I may have deleted it with my experimentation). How do I recreate it?
Dean
Loyal WaterMemberDean,
This is a perfect case where you can use these options. You can go to New > Other > MyEclipse > Hibernate > Hibernate Config file and run through the wizard to add this file.
fermataintlMemberdoes not work. It says: “configuration file path not specified”. When I press the browse button, another dialog comes up saying “no entries available”, only allowing me to hit cancel. Am I supposed to type in the entire path to the directory in the text field labeled “Configuration Folder”? How do I tell it what project I am talking about?
Thanks.
DeanPS I check “Notify me when a reply is posted” but this feature does not appear to work (at least for me)
Loyal WaterMemberWhen I press the browse button, another dialog comes up saying “no entries available”, only allowing me to hit cancel. Am I supposed to type in the entire path to the directory in the text field labeled “Configuration Folder”?
When you hit the browser button, the dialog that comes up should list all the projects that are hibernate projects. If you dont have any hibernate projects, then it shows “no enteries available”.
Do you have a hibernate project which is not being shown in the dialog ?
fermataintlMemberyes. the one I have been experimenting with. How does myeclipse know which projects are hibernate enabled?
fermataintlMemberbut ut still does not work
Loyal WaterMemberCan you go and grab a hibernate project from Examples On-Demand and check if that shows up in the list ?
I think its the .project file where the project is defined as a hibernate project.
fermataintlMemberwhere do I find the examples on demand?
fermataintlMemberI just created a new play project, added the hibernate capabilities and went through the wizard. If you (mistakenly) blow away the .cfg file, you are screwed, as far as I can tell.
Dean
Loyal WaterMemberwhere do I find the examples on demand?
You can find it under MyEclipse > Examples-On-Demand under the menu.
-
AuthorPosts