Hibernate tools and bedework with Eclipse
This assumes you have bedework installed in eclipse as project bedework.
Download the hibernate tools from hibernate.org and follow the install directions they supply.
After restarting eclipse Ctrl-n should allow you to select the Hibernate-console configuration wizard.
It may already be partially populated, but the fields should contain:
- Name : bedework
- Property file: /bedework/dist/temp/shellscr/bldtemp/dumpres/resources/hibernate.properties
- Configuration file: /bedework/dist/temp/shellscr/caldavTest/classes/hibernate.cfg.xml
In the classpath section ensure you have:
- /bedework/lb/hsqldb-xxx.jar (or the appropriate jdbc driver jar)
Switch to the hibernate console perspective and right click on the bedework project or workspace. Select "HQL ScratchPad"
Try an hql query. It would not be advisable to try "from BwEventObj" if you are using a copy of your production data. Thsi query can pull in almost the entire database.
Something of the kind, "from BwEventObj? ev where ev.uid='uid-value'". The result is displayed in the Hibernate Query Result panel.