<div>The Home idea</div><a href="https://github.com/seam/seam-example-confbuzz/blob/develop/src/main/java/seam/example/confbuzz/ConferenceInstance.java">https://github.com/seam/seam-example-confbuzz/blob/develop/src/main/java/seam/example/confbuzz/ConferenceInstance.java</a><br clear="all">

<div><br></div><div>The Query idea</div><div><a href="https://github.com/seam/seam-example-confbuzz/blob/develop/src/main/java/seam/example/confbuzz/TodaysConferencesQuery.java">https://github.com/seam/seam-example-confbuzz/blob/develop/src/main/java/seam/example/confbuzz/TodaysConferencesQuery.java</a></div>

<div><br></div><div>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&#39;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).</div>

<div><br></div><div>I&#39;ve spoken with Lincoln about this and there are two JIRAs (<a href="https://issues.jboss.org/browse/SEAMFORGE-280">https://issues.jboss.org/browse/SEAMFORGE-280</a> and <a href="https://issues.jboss.org/browse/SEAMFORGE-279">https://issues.jboss.org/browse/SEAMFORGE-279</a>) to have Forge generate this via the JPA plugin or perhaps Seam Persistence plugin.</div>

<div><br></div><div>Discuss.</div>-- <br>Jason Porter<br><a href="http://lightguard-jp.blogspot.com" target="_blank">http://lightguard-jp.blogspot.com</a><br><a href="http://twitter.com/lightguardjp" target="_blank">http://twitter.com/lightguardjp</a><br>

<br>Software Engineer<br>Open Source Advocate<br>Author of Seam Catch - Next Generation Java Exception Handling<br><br>PGP key id: 926CCFF5<br>PGP key available at: <a href="http://keyserver.net" target="_blank">keyserver.net</a>, <a href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>