Sorry, that I have to ask again.
This is how my current solution looks like:
Quote:
<hbm2java ejb3="true" templatespath="${templatespath}"
exporter="my.own.CustomPojoExporter"/>
Do you mean:
Quote:
<hbm2java ejb3="true" templatespath="${templatespath}" >
<generate class="my.own.CustomPojoExporter" template="templatename that will be used" filename="velocitysnippet-to-generate-the-filename"/>
</hbm2java>
As I understand, you would like to have the ability to generate multiple artifacts, which could have different exporters, different templates (instead of hard-coded "pojo/javaclass.vm" and different names for the generated files.
Or if not, could you please sketch how the ant config should look like.
And could you please give an example of velocitysnippet-to-generate-the-filename?
Thanks
Kambiz