Stuart,<div><br></div><div>You also previous mentioned...</div><div><span class="Apple-style-span" style="font-family: &#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; "><br>

</span></div><div><span class="Apple-style-span" style="font-family: &#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; "><font class="Apple-style-span" color="#333333">With portable extensions we could do something like:</font></span></div>

<div><span class="Apple-style-span" style="font-family: &#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif; font-size: 12px; "><font class="Apple-style-span" color="#333333"><pre class="wikiPreformatted" style="background-color: rgb(245, 245, 245); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(170, 170, 170); border-right-color: rgb(170, 170, 170); border-bottom-color: rgb(170, 170, 170); border-left-color: rgb(170, 170, 170); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px; font-family: &#39;Andale Mono&#39;, &#39;Courier New&#39;, monospace; font-size: 11px; overflow-x: auto; max-width: 950px; ">

@Entity
@AutoHome
public class MyEntity ....

</pre></font></span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: &#39;Lucida Grande&#39;, Geneva, Verdana, Arial, sans-serif; font-size: 12px; line-height: 18px; ">and have a portable extension that registers a new home bean for every entity with the @AutoHome annotation.</span></div>

<div><br></div><div>I think we all agree that &quot;Home&quot; is a crappy name, so perhaps @Crud or @Dao would be a sufficient name.</div><div><br></div><div>-Dan</div><div><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 22:15, Stuart Douglas <span dir="ltr">&lt;<a href="mailto:stuart.w.douglas@gmail.com">stuart.w.douglas@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><u></u>

  
    
    
  
  <div text="#000000" bgcolor="#ffffff">
    My original plan for EntityQuery was to use the ServiceHandler stuff
    in solder:<br>
    <br>
    @EntityQuery<br>
    public interface MyQuery {<br>
    <br>
      @Query(&quot;Select u from User u where type=:p1&quot;)<br>
      public List&lt;User&gt; users(String type);<br>
    <br>
    }<br>
    <br>
    Stuart<div><div></div><div class="h5"><br>
    <br>
    On 09/21/2011 06:00 AM, José Rodolfo Freitas wrote:
    </div></div><blockquote type="cite"><div><div></div><div class="h5">Yeah, I agree that being declarative is the ideal.
      <div>let&#39;s say no to inheritance with generics! hehehe.<br>
        <br>
        <div class="gmail_quote">On Tue, Sep 20, 2011 at 4:41 PM, Dan
          Allen <span dir="ltr">&lt;<a href="mailto:dan.j.allen@gmail.com" target="_blank">dan.j.allen@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div>On Tue, Sep 20, 2011 at 15:36, José Rodolfo
              Freitas <span dir="ltr">&lt;<a href="mailto:joserodolfo.freitas@gmail.com" target="_blank">joserodolfo.freitas@gmail.com</a>&gt;</span>
              wrote:<br>
            </div>
            <div class="gmail_quote">
              <div>
                <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
                  What I like most in CDI and Seam3 is that it&#39;s very
                  easy to keep things simple and that&#39;s something I
                  strongly advocate. </blockquote>
                <div><br>
                </div>
              </div>
              <div>+1</div>
              <div>
                <div> </div>
                <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
                  <div>Of course there&#39;re still boilerplate code, but I
                    think it&#39;s minimal (compared to the JEE generations
                    before), and that&#39;s something forge can create
                    without the need to satisfy a &quot;framework&quot;. Yes, I
                    admitedly am afraid of that word.</div>
                </blockquote>
                <div><br>
                </div>
              </div>
              <div>That&#39;s fine, it doesn&#39;t have to be a framework. I do
                think there is room for having some common scaffolding,
                though. If we can do that by extending the programming
                model (annotations, generic beans or interfaces) so that
                it&#39;s declarative, that&#39;s probably ideal.</div>
              <div><br>
              </div>
              <div>I suggest that we brainstorm proposals using gists (<a href="http://gist.github.com" target="_blank">http://gist.github.com</a>). That will
                get the ball rolling. We can start with the idea Jason
                posted, or feel free to take a different approach.</div>
              <div><br>
              </div>
              <font color="#888888">
                <div>-Dan</div>
                <div><br>
                </div>
              </font></div>
            <div>
              <div>-- <br>
                <div>Dan Allen</div>
                Principal Software Engineer, Red Hat | Author of Seam in
                Action<br>
                Registered Linux User #231597<br>
                <br>
                <div><a href="http://www.google.com/profiles/dan.j.allen#about" target="_blank">http://www.google.com/profiles/dan.j.allen#about</a><br>
                  <a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
                  <a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
                </div>
                <br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      </div></div><pre><fieldset></fieldset>
_______________________________________________
seam-dev mailing list
<div class="im"><a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a>
</div></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><div><a href="http://www.google.com/profiles/dan.j.allen#about" target="_blank">http://www.google.com/profiles/dan.j.allen#about</a><br>

<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br></div><br>
</div>