cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugi Thordarson <h...@karlmenn.is>
Subject For those of us who want getters without the get-prefix (e.g. EOF fugitives)
Date Thu, 14 Apr 2016 22:34:04 GMT
Hi all,
if you’d like to drop the “get"-prefix from your DataObject accessor methods, here’s
a pom-file and a template to help. The pom/template combination generates a BeanInfo class
for each entity that java reads to check the names of getter and setter methods. If you use
this, Cayenne will function perfectly with getter methods that don’t include the “get”-prefix.
I included the wosuperclass-template which generate EOF style DataObject classes, just to
make the example complete.

https://gist.github.com/hugith/377ed698b6966d25bcd65ccd9970aa7c

- hugi
Mime
View raw message