Ah, yes, that would be the preferred method :) in fact, I believe it&#39;s already there. No need to check .hasFacet(...)<br><br><div class="gmail_quote">On Fri, Apr 15, 2011 at 8:55 PM, Rodney Russ <span dir="ltr">&lt;<a href="mailto:rruss@redhat.com">rruss@redhat.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;"><br>
----- &quot;Lincoln Baxter, III&quot; &lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt; wrote:<br>
<br>
&gt; From: &quot;Lincoln Baxter, III&quot; &lt;<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>&gt;<br>
&gt; To: &quot;brian long&quot; &lt;<a href="mailto:brian.long@vt.edu">brian.long@vt.edu</a>&gt;<br>
&gt; Cc: &quot;brian&quot; &lt;<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>&gt;, &quot;forge-dev List&quot; &lt;<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a>&gt;, &quot;John du Clos&quot; &lt;<a href="mailto:duclosjj@yahoo.com">duclosjj@yahoo.com</a>&gt;<br>

&gt; Sent: Friday, April 15, 2011 1:14:38 PM GMT -07:00 US/Canada Mountain<br>
&gt; Subject: Re: [forge-dev] Fw: Re: Mojavelinux.com Feedback: seam-gen and cdi/weld<br>
<div class="im">&gt;<br>
&gt; My suggestion for reading persistence XML is to use the<br>
&gt; PersistenceFacet:<br>
&gt;<br>
&gt; Facets are how plugins interact with pieces of the underlying project:<br>
&gt;<br>
&gt; project.getFacet(PersistenceFacet.class).getConfig();<br>
&gt;<br>
&gt; (this will blow up if persistence is not installed, so you need to<br>
&gt; first call (project.hasFacet(PersistenceFacet.class))<br>
<br>
</div>Why couldn&#39;t you use: @RequiresFacet(PersistenceFacet.class)<br>
<div><div></div><div class="h5"><br>
&gt;<br>
&gt; ~Lincoln<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Apr 15, 2011 at 12:55 PM, brian &lt; <a href="mailto:brianx@vt.edu">brianx@vt.edu</a> &gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; hi L3 and john.<br>
&gt;<br>
&gt; I was thinking about the persistence.xml. Would using piping make<br>
&gt; sense<br>
&gt; to read/parse the fields from the persistence.xml and then pass them<br>
&gt; to<br>
&gt; GenerateEntities?<br>
&gt;<br>
&gt; so &quot;read-persistence | generate-entities&quot; ?<br>
&gt;<br>
&gt; ...I&#39;m not sure if a plugin can read a file, but if it could, a little<br>
&gt; file-reader/parser might work?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, 2011-04-15 at 12:04 -0400, Lincoln Baxter, III wrote:<br>
&gt; &gt; Hi John!<br>
&gt; &gt;<br>
&gt; &gt; Thank you for your interest! I think it&#39;s fair to say that we are<br>
&gt; &gt; &quot;close&quot; to having a fully-functional database reverse-engineering<br>
&gt; &gt; plugin, but we are not there yet. Brian (ccd) has been doing some<br>
&gt; work<br>
&gt; &gt; recently (when he has time) to get Max Andersen&#39;s prototype up and<br>
&gt; &gt; running. The prototype is here, but has a few shortcomings:<br>
&gt; &gt;<br>
&gt; &gt; <a href="https://github.com/forge/plugin-hibernate-tools" target="_blank">https://github.com/forge/plugin-hibernate-tools</a><br>
&gt; &gt; 1. Connection settings are hardcoded<br>
&gt; &gt; 2. JDBC drivers are not included with the plugin<br>
&gt; &gt; 3. Does not take persistence.xml into account, if it exists<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt; In short, it works, but is not usable yet; however, these are all<br>
&gt; &gt; things that can be worked on if you are interested! And I would be<br>
&gt; &gt; more than happy to help you get together with Brian and get two<br>
&gt; brains<br>
&gt; &gt; working on this! Would you be intersted in that?<br>
&gt; &gt;<br>
&gt; &gt; No matter your level of commitment, I would recommend joining the<br>
&gt; dev<br>
&gt; &gt; and users lists:<br>
&gt; &gt; * <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt; &gt; * <a href="https://lists.jboss.org/mailman/listinfo/forge-users" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-users</a><br>
&gt; &gt; Just let me know and I&#39;ll get you all the info that you&#39;ll need :)<br>
&gt; &gt; ~Lincoln<br>
&gt; &gt;<br>
&gt; &gt; On Thu, Mar 17, 2011 at 8:57 PM, John du Clos &lt; <a href="mailto:duclosjj@yahoo.com">duclosjj@yahoo.com</a> &gt;<br>
&gt; &gt; wrote:<br>
&gt; &gt; Hi Lincoln-<br>
&gt; &gt;<br>
&gt; &gt; I was chatting with Dan Allen and he mentioned you are working<br>
&gt; &gt; on Forge and specifically the reverse engineering feature from<br>
&gt; &gt; the database. I wanted to reach out to you to see if you have<br>
&gt; &gt; any early versions you need testers to help you verify this<br>
&gt; &gt; feature.<br>
&gt; &gt;<br>
&gt; &gt; I look forward to hearing from you!<br>
&gt; &gt; John<br>
&gt; &gt;<br>
&gt; &gt; --- On Wed, 3/16/11, Dan Allen &lt; <a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a> &gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; From: Dan Allen &lt; <a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a> &gt;<br>
&gt; &gt; Subject: Re: Mojavelinux.com Feedback: seam-gen and<br>
&gt; &gt; cdi/weld<br>
&gt; &gt; To: <a href="mailto:duclosjj@yahoo.com">duclosjj@yahoo.com</a><br>
&gt; &gt; Date: Wednesday, March 16, 2011, 9:33 PM<br>
&gt; &gt;<br>
&gt; &gt; Hey John,<br>
&gt; &gt; Thanks for reading the book. I&#39;m glad it helped you<br>
&gt; &gt; along. I know about those painful days of J2EE you are<br>
&gt; &gt; talking about.<br>
&gt; &gt; The best way to get started atm is using the Maven<br>
&gt; &gt; archetype.<br>
&gt; &gt; <a href="http://tinyurl.com/gojavaee" target="_blank">http://tinyurl.com/gojavaee</a><br>
&gt; &gt; That gives you a starter project. We don&#39;t yet have<br>
&gt; &gt; the reverse engineering yet for this environment. That<br>
&gt; &gt; what Forge will offer soon. Check out the issue<br>
&gt; &gt; tracker or mailing list for updates.<br>
&gt; &gt; Hope that gets you started. Cheers,<br>
&gt; &gt; - Dan Allen<br>
&gt; &gt; Sent from my Android-powered phone:<br>
&gt; &gt; An open platform for carriers, consumers and<br>
&gt; &gt; developers<br>
&gt; &gt; On Mar 16, 2011 9:04 PM, &lt; <a href="mailto:duclosjj@yahoo.com">duclosjj@yahoo.com</a> &gt; wrote:<br>
&gt; &gt; &gt; Submitted by: John duClos &lt; <a href="mailto:duclosjj@yahoo.com">duclosjj@yahoo.com</a> &gt; on<br>
&gt; &gt; Wednesday, March 16th, 2011 @ 9:04:25 pm (-0400)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Online Form Fields<br>
&gt; &gt; &gt; ------------------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Url:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Message:<br>
&gt; &gt; &gt; Dan-<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I purchased your Seam book when it was published and<br>
&gt; &gt; am a supporter of<br>
&gt; &gt; &gt; the Seam framework since I lived the challenging<br>
&gt; &gt; days of early J2EE<br>
&gt; &gt; &gt; development.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I work with database centric solutions and seam-gen<br>
&gt; &gt; allowed me to<br>
&gt; &gt; &gt; develop solutions in record time by getting my<br>
&gt; &gt; project started very<br>
&gt; &gt; &gt; quickly. I&#39;d like to start implementing JEE 6/CDI<br>
&gt; &gt; with JBoss AS 6, but<br>
&gt; &gt; &gt; I can&#39;t seem to find a way to issue the seam-gen<br>
&gt; &gt; command.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I looked at Forge but that is not where seam-gem<br>
&gt; &gt; was. Do you know of a<br>
&gt; &gt; &gt; valid seam-gen solution for JEE 6/CDI based projects<br>
&gt; &gt; (Seam 3).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks,<br>
&gt; &gt; &gt; John<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Client Variables<br>
&gt; &gt; &gt; ----------------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; HTTP_USER_AGENT:<br>
&gt; &gt; &gt; Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0;<br>
&gt; &gt; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR<br>
&gt; &gt; 3.5.21022; .NET CLR 3.5.30729; MDDS; .NET CLR<br>
&gt; &gt; 3.0.30729; MS-RTC LM 8; AskTB5.4)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Lincoln Baxter, III<br>
&gt; &gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; &gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &gt; &quot;Keep it Simple&quot;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Lincoln Baxter, III<br>
&gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt; &quot;Keep it Simple&quot;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; forge-dev mailing list<br>
&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<div class="im">&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</div>_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<div><div></div><div class="h5"><a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>