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/.eclipse
- /bedework/lb/hsqldb-xxx.jar (or the appropriate jdbc driver jar)
- /bedework/dist/temp/shellscr/dumpres/classes
- /bedework/dist/temp/shellscr/dumpres/lib/commons-codec-1.3.jar
- bedework/dist/temp/shellscr/dumpres/lib/commons-lang-2.1.jar
- /bedework/dist/temp/shellscr/dumpres/lib/commons-logging.jar
- /bedework/dist/temp/shellscr/dumpres/lib/ical4j-xxx.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.
