michealAtmi
michealAtmi

Reputation: 1042

ActiveJDBC in a big project

I am using old good Hibernate and reading about news int ORM area. ActiveJDBC seems to be quite new ORM, does anybody use it in a big project? Where Hibernate is stronger and why? What ActiveJDBC is misisng? Does it for example have L1 cache and cooperates with Spring inside Spring -managed transactions?

Upvotes: 0

Views: 269

Answers (1)

ipolevoy
ipolevoy

Reputation: 5518

Disclaimer: I'm the author of ActiveJDBC and other JavaLite projects. ActiveJDBC is a newer than Hibernate, but has been around since 2009. AJ is not a rewrite of Hibernate, but a different ORM implementation based on Active Record, largely inspired by Ruby on Rails. I personally used it on a number of large projects for Sears, Humana, Groupon, Edovo, Discover Health. It is not as commonly used as Hibernate, but there are quite a few well-known companies that use it: GoDaddy, Amazon, Yahoo, Ebay and others.

ActiveJDBC is stronger than Hibernate in web applications, where you do not need to keep a graph of objects, and every instance of a model (entity) is like a map, that is simply passed to a view. This vastly simplifies coding and reduces about 80% of code compared to Hibernate. ActiveJDBC is on average is 50% faster than Hibernate at runtime.

ActiveJDBC uses a Pass-Through Model, which is also completely different from Hibernate object graph model. Hibernate was designed at the time of client-server, AJ was designed at the time of web apps and APIs.

L1 Caching is specific to Hibernate. ActiveJDBC has a different caching model. ActiveJDBC has no "session". Every model is responsible for itself. For more information, refer to documentation.

Upvotes: 1

Related Questions