toastchee wrote:
Hi TCN,
Use middlegen reading the directions for the simple example and THEN
1. Modify the database xml file in the samples to point to your datasource.
2. Modify the build.xml file to use the db xml file you just modified.
3. Run middlegen (don't run the create-tables target :-) )
4. You should see the gui. hit generate, then when it seems done, close it.
5. When the generation step is done, run ant hbm2java.
Now you have a set of hbm.xml files and java files that you can use against your database. I used these and the hibernate tutorial on onjava.com to kind of get started.
2.5 change name in build.xml :)
Well, I do have a table called "Urls" and the middlegen-generated file are actually called "Url". Why?