From: maheshexp on
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?
From: Arved Sandstrom on
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?

ActiveObjects (https://activeobjects.dev.java.net/) is one example. I
don't know how active (excuse the pun) this implementation is.

AHS
From: markspace on
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/>

From: Daniel Pitts on
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.


--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
From: Arved Sandstrom on
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/>
>
Depends on what you mean by answer. JPA implementations like EclipseLink
JPA and Hibernate JPA follow the Data Mapper pattern. Persistence
operations are not handled by the domain objects but rather by another
thing (or things), like the EntityManager. Whereas in the active record
pattern the domain objects themselves are responsible for persistence
operations.

AHS