On 7/20/07, Matthew Dahlman <mdahlman@...> wrote:
> Hi guys,
> Speaking of Gerd's Hibernate plugin, are there any docs explaining a
> little about what is planned? From my brief poking around on the website I
> didn't find anything.
> I'd be very interested to know what's coming, and possibly even be able to
> make a suggestion or two. Currently I use SQuirreL and Hibernate
> everyday... but not together. Suggestions made while active coding is
> going on are often easier to integrate than bugs or enhancements entered
> after the fact.
Do you use the Hibernate-Tools plugin to Eclipse (or the JBoss IDE)?
I've seen the documentation for this refer to being able to connect to
a database and execute HQL, but I haven't taken the time to
investigate it further. I've seen Gerd add a new HQL tab which I
presume will accept Hibernate query language strings to run through
Hibernate and use mapping files (*.cfg.xml) or I guess even JPA
annotations, to generate the SQL to send to the database. I don't
know much more about what's planned beyond that, but there seems to be
a little overlap at least in this area. One area that I've seen
problems in my own Hibernate project is when using only hibernate
annotations, you want to generate the DDL to produce the schema, there
doesn't appear to be support for providing meaningful names for unique
constraints and foreign keys. So you end up with Hibernate-Tools
generating constraints with names like FKCO468456284 or some such.
Also, you can use hibernate core to generate schema DDL from mapping
files (*.cfg.xml), but you have to use Hibernate-Tools and
Hibernate-Annotations to generate DDL from JPA annotated class files
which is a pain to setup. It would be nice to hide that different
setup behind a single user interface, if the Hibernate-Tools folks
don't get to it first. But I'm not sure at the moment what Gerd has
done or plans to do.