Hi,

I have this DAO class that I want to generate. The DAO centers around a pojo, for example Person, with hibernate metadata. In this DAO I want to generate save, update, delete and find  methods for the person object. For all the associations of the person object (for example country). I'd like to generate a findAllCountries method in the DAO object. This finder method can be used to fill dropdown selection boxes.

The plugin that generates the Dao for the person object has multioutput set to true. So the metadata object that I can access from the Velocity template has only the person object in it !? But now I want to get the name attribute of the hibernate.class tag of the country class for use in the hibernate query to find all the country objects.

How do I get a handle to the metadata of other classes when having multioutput set to true?

Kind regards,

Joris Wijlens

Reply via email to