- This topic has 11 replies, 2 voices, and was last updated 17 years, 5 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
DeanJanuary 8, 2008 at 12:16 pm #280413
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.January 8, 2008 at 9:53 pm #280434
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
January 9, 2008 at 3:59 am #280445
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.January 9, 2008 at 1:07 pm #280486
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)
January 10, 2008 at 8:16 am #280520
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 ?
January 10, 2008 at 8:45 am #280525
fermataintlMemberyes. the one I have been experimenting with. How does myeclipse know which projects are hibernate enabled?
January 10, 2008 at 12:26 pm #280546
fermataintlMemberbut ut still does not work
January 11, 2008 at 12:34 pm #280609
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.
January 11, 2008 at 3:31 pm #280612
fermataintlMemberwhere do I find the examples on demand?
January 12, 2008 at 2:18 pm #280629
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
January 14, 2008 at 8:06 am #280648
Loyal WaterMemberwhere do I find the examples on demand?
You can find it under MyEclipse > Examples-On-Demand under the menu.
-
AuthorPosts