From: Tom Anderson on
On Fri, 18 Dec 2009, Daniel Pitts wrote:

> markspace wrote:
>> maheshexp wrote:
>>> I was wondering is there any existing ActiveRecord implemented for the
>>> mammoth programming language? With the Rails, ActiveRecord been made
>>> famous than any other implementation and why not for java?
>>
>> I don't know much about ActiveRecord or Hibernate, but just reading the
>> descriptions, I think that Hibernate may be Java's answer to ActiveRecord.
>>
>> <https://www.hibernate.org/>
>
> 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.

What kind of more complucated, and what kind of custom logic? I haven't
used Hibernate/JPA, but want to start, so i'm interested in this sort of
stuff.

A colleague said something similar, FWIW - great for simple cases, but
struggling on more complex stuff. His example involved manipulate a
many-many relationship on a set of detached objects - when he reattached
them, Hibernate went mad.

tom

--
Both English and Italian can trace their emergence as popular tongues
partly to pornography. -- Peter Johnson
From: Arne Vajhøj on
On 18-12-2009 03:10, Daniel Pitts wrote:
> markspace wrote:
>> maheshexp wrote:
>>> I was wondering is there any existing ActiveRecord implemented for the
>>> mammoth programming language? With the Rails, ActiveRecord been made
>>> famous than any other implementation and why not for java?
>>
>> I don't know much about ActiveRecord or Hibernate, but just reading
>> the descriptions, I think that Hibernate may be Java's answer to
>> ActiveRecord.
>>
>> <https://www.hibernate.org/>
> 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.

My experience is that:
- if you start with Hibernate and create the database for
Hibernate, then it works great
- if the database is an existing database created for
other usage, then using Hibernate to access it can
become very painful

Arne