Eclipse plugin¶
NOTE: If you have used the Eclipse plugin prior to version 0.6 of Hades you have to reinstall it to reflect changes of version 0.6. Unfortunately we missed to update the feature version, so Eclipse will not recognize a new version available and not prevent you from using
finder-prefixattribute of the namespace that became obsolete in 0.6.
To tightly integrate Hades into your application it is useful to leverage the features provided by Spring IDE. You can achieve this using the Hades Eclipse plugin. This chapter explains in detail how to install the plugin and what features you can expect by it.
Installation¶
You can install the plugin by simply pointing your Eclipse update manager to http://updatesite.synyx.org and choosing the Hades Namespace Integration.
Features¶
Code completion for XML elements attributes¶
By handing over the Hades XSD you gain code completion for XML elements and especially attributes. This regards entity-package-name and dao-package-name in particular as well as the custom-element-ref attribute in the <dao /> element.
Beans detection using automatic dao detection mode¶
If you use the automatic DAO detection mode as shown below you will get all discovered DAO beans correctly listed in the Spring Elements section of your Project Explorer. The beans also lists property values like the finder prefix or the query lookup strategy including implicit defaults.
Marking the DAO interfaces to be Spring beans¶
The DAO interfaces Hades creates beans for are marked with the usual Spring Bean "S" you are used to from other bean classes.
Content assist for bean references is aware of Hades beans¶
Trying to reference a DAO bean will now correctly show up the beans as suggestions during content assist.