[forge-dev] Fw: Re: Mojavelinux.com Feedback: seam-gen and cdi/weld

Lincoln Baxter, III lincolnbaxter at gmail.com
Fri Apr 15 15:14:38 EDT 2011


My suggestion for reading persistence XML is to use the PersistenceFacet:

Facets are how plugins interact with pieces of the underlying project:

project.getFacet(PersistenceFacet.class).getConfig();

(this will blow up if persistence is not installed, so you need to first
call (project.hasFacet(PersistenceFacet.class))

~Lincoln

On Fri, Apr 15, 2011 at 12:55 PM, brian <brianx at vt.edu> wrote:

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


-- 
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20110415/4baa9327/attachment-0001.html 


More information about the forge-dev mailing list