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