Ok I made it work today. I was able to generate some code using the modified legacy sql2java templates found in the latest 2.6.7 release. I altered them since the generator is using different variables which can be used inside the templates. In a later stage, we can try to make it all backwards compatible, but for now, this does not have a high priority.