I have this code generator that uses hibernate tools.
I’m trying to generate a DAO for a given entity mapped from a database table. I would like to check if there is another table with the same name + a suffix and, in that case, have availble in the environment, at the time of using the freemarker template, a second entity mapped from this second table.
I’ve tried to write a CustomGenericExporter with an exportPOJO method that puts the second POJO in the ‘additionalContext’ Map with no success.
If someone has a hint on how to approach this case I will really appreciate it. I can provide more info if necessary.
Thank you!