Re: Is there any ActiveRecord implementation for java?
Lew wrote:
arkspace wrote:
<https://www.hibernate.org/>
Daniel Pitts wrote:
I've used hibernate extensively. If you're doing simple mappings, it
is great, but once you start getting more complicated, or need to do
custom logic, it starts getting annoying.
I use Hibernate, and more generally JPA, extensively. Some of my uses
are complicated. It's never been any more annoying than complicated
programming is regardless. In fact, Hibernate's rather useful and
powerful when things get complicated. (I prefer to use it in
JPA-compliant mode.)
Some of my colleagues have run into trouble using ORM (object-relational
mapping) as a data-access layer rather than as a foundation for an
object model. Hibernate isn't SQL.
I've had issues using Embedded's in collections which have one-to-many
for entities or other embeddeds. If you have a tree-like structure, you
end up with some artificial constraints from Hibernate.
Also, Hibernate's "Criteria" object tends to handle certain types of
joins in non-intuitive ways.
Like I said, its great for some cases, but for my usages I tend to find
a lot of broken edge cases.
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>