On Tue, Feb 19, 2013 at 07:45:01PM -0500, John Franey wrote:
Would hibernate tools read JPA annotations, or only hibernate's?
It reads both. It uses hibernate for reading this so whatever
hibernate can reads it can read (but not necessarily write ;)
What kind of artifacts does it generate?
in tools it self is a few built in ones, like pojo and pojo+jpa and
hbm.xml files.
More in the docs.
Does this activate a template
translation?
Yes, it uses freemarker, but the interesting bit is that it generates
a Hibernate Configuration you can use to what you want.
What is the name of this feature, so I can find it in the hibernate
tools
documentation?
Its the main almost only feature of hibernate tools :)
http://docs.jboss.org/tools/latest/en/hibernatetools/html_single/index.ht...
is the best docs from perspective of usage from Ant. (Same doc has for
eclipse if interested).
Programmatically I haven't pushed it much but code is at
https://github.com/hibernate/hibernate-tools
and you can ping me or possibly even Koen to give some more intro.
The Forge plugin that uses this already is at
https://github.com/forge/plugin-hibernate-tools
/max
On Mon, Feb 18, 2013 at 6:50 AM, Max Rydahl Andersen <
max.andersen(a)redhat.com> wrote:
> > 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(a)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(a)lists.jboss.org
> >
https://lists.jboss.org/mailman/listinfo/forge-dev
> >
> > _______________________________________________
> > forge-dev mailing list
> > forge-dev(a)lists.jboss.org
> >
https://lists.jboss.org/mailman/listinfo/forge-dev
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/forge-dev
>
_______________________________________________
forge-dev mailing list
forge-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev