The Home idea
The Query idea
The main thing that I would change with the Query class above is to use
named queries, thus espousing the generally accepted best practice in
default applications. I understand this doesn't fill all the gaps of the
older SAF from Seam 2, but I think it works for the majority of cases, and
it also helps people understand the best way to do things instead of relying
on the magic of SAF from Seam 2 (which I have found to be a major problem in
projects and teams I have worked with over the last three years).
I've spoken with Lincoln about this and there are two JIRAs (
) to have Forge generate this
via the JPA plugin or perhaps Seam Persistence plugin.
Open Source Advocate
Author of Seam Catch - Next Generation Java Exception Handling
PGP key id: 926CCFF5
PGP key available at: keyserver.net