Search Postgresql Archives

Re: Does anyone use postgreSQL(windows version)+Hibernate with middlegen?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rolandpeng wrote:
> Yes,I'm totally agree about this comments.
> But as you're mentioned,I'd like to build all the hbm.xml at first run.
> I have built more than 40 tables with complicated relations among those.
> So if middlegen could help me to complete the template work at first
> generation would be very convenience.

NetBeans does fairly decent schema generation, at least for JPA. I'm not
too sure whether it supports XML-based schema definitions too.

Personally, I look at the XML-based hibernate stuff and shudder. JPA
isn't exactly beautiful, but it's fairly maintainable and kind of clean.
If you're building a new project, have you considered using JPA and
Hibernate EntityManager? You can always drop back down to the underlying
Hibernate APIs when you need to (for example: setting parent/child
autodelete relationships, which aren't defined in JPA 1 only in the
yet-to-be-availible JPA2) and most of the time EntityManager is very
nice to work with. You still use HQL, or native SQL queries as/when you
prefer.

--
Craig Ringer

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux