cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikita Timofeev <>
Subject Cayenne own template renderer to replace Velocity
Date Thu, 10 Aug 2017 09:35:46 GMT
Hi all,

I've opened a PR [1] just now with new SQLTemplateProcessor
implementation based on new Cayenne own parser (instead of Velocity).

It doesn't support all features of Velocity but it's enough to
seamlessly replace Velocity in all core and test code in Cayenne, plus
it's faster (up to x15 in case of cache hit) and should have less
memory footprint (though I've only checked speed and memory is my
guess as new parser smaller and have no runtime).

Plus cayenne-server now free of velocity and commons-lang
dependencies, next step will be removing of commons-collections (it
will be the last one).

VelocitySQLTemplateProcessor now comes in optional auto-loaded module
(cayenne-velocity), so if you relied on some advanced features of
Velocity in your SQLTemplates you still can use it. And Velocity is
still used for cgen templates.

See PR [1] and Jira ticket [2] for details.

Any thoughts or concerns?


Best regards,
Nikita Timofeev

View raw message