[forge-dev] reflection to access classes in project dependencies

Max Rydahl Andersen max.andersen at redhat.com
Mon Feb 18 06:50:55 EST 2013


> Max,
> 
> I didn't know hibernate tools had a reveng plugin to forge.  It did not occur to me to look because I was too focused on generating gui from entities which we developed manually.  I'll try it to see what results.

I actually send that email to early not explaining well what I meant ;)

The current forge hibernate tools is 100% "read via jbdc from a database and generate entities".

But hibernate tools core which forge hibernate tools is using actually don't have to start with just a database; it can also be "take existing classes and generate artifacts from that". As long as hibernate core can understand the mappings hibernate tools can load it.

The limitation of this is  of course you don't have the full Forge API available to you (since hibernate tools was done pre-forge) but at least it is an alternative that could be looked into using
in the short time. Just a thought.

/max 
> 
> Thanks,
> 
> 
> 
> 
> 
> On Fri, Feb 15, 2013 at 11:52 AM, Max Rydahl Andersen <max.andersen at redhat.com> wrote:
> 
> > Me too. However, I really, really want the feature: generate scaffold from an existing jpa library.
> 
> one way of doing this is just to use hibernatetools to get that model....
> 
> /max
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev
> 
> _______________________________________________
> forge-dev mailing list
> forge-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/forge-dev




More information about the forge-dev mailing list