Skip to content

Biting the hand that feeds IT

The Register ®

Software:


Related Whitepapers

Comments on ‘To Jalapeño or to Hibernate the data...’

An alternative to OR mapping?

Published Monday 13th November 2006 11:08 GMT

« Back to article page

Nice toy... 

By Phil Miesle
Posted Monday 13th November 2006 12:07 GMT

Jalapeño is a tool to abstract your developer from the persistence layer in a Caché database. Hibernate is a tool to abstract your developer from the persistence layer in a (general) relational database. Comparing these two is a bit like comparing apples and oranges...

Object databases are a good choice for a limited set of applications, relational databases are a good choice for a broader set of applications (and give you *way* more opportunity to shoot yourself in the foot).

No matter what "abstraction" tool you choose, if you choose the wrong persistence model, you'll be in a world of pain.

Ultimately, *ANY* tool that keeps your developer from understanding how data is persisted is a tool that will only cause grief at scale. The more abstracted the persistence, the bigger pain in solving the inevitable problems.

Nay, give me a human developer with a brain on his shoulder and some actual experience building large-scale systems. That person can do code reviews and teach solid techniques.

Spend more time up-front in development, spend less time "post-release" chasing fires. Sadly, deadline-driven development doesn't accept this.

Hibernate Annotations 

By Jon Skeet
Posted Monday 13th November 2006 12:48 GMT

I've been using Hibernate Annotations since I started using Hibernate about a year and a half ago. The only XML file I need to touch is the one listing the classes, which is hardly a huge overhead.

Admittedly having the mapping details in the same source as the domain object reduces separation, but I suspect that will very rarely be an issue - and XML configuration is always an option if necessary.

Jon Skeet

No XML 

By Patrick
Posted Monday 13th November 2006 13:03 GMT

Hibernate also offers XML free mappings via Hibernate Annotations - most of the annotations seem to be standard EJB 3.

Database Independence with Jalapeño 

By Anonymous Coward
Posted Monday 13th November 2006 14:58 GMT

Jalapeño does support database independence by providing an export utility that will convert the Caché class schema (originally derived from pure Java class definitions) to a DDL file that can be imported into a relational database. The Object Manager automatically uses object persistence methods (Open, Save, New, Delete) when accessing Caché, and relational persistence methods (Select, Update, Insert, Delete) when it is configured to connect to a relational database.

Storing XML in a relational database 

By Deepak Vohra
Posted Tuesday 14th November 2006 22:49 GMT

Hibernate 3.x provides XML to relational database mapping for storing XML documents, which Jalapeno doesn't.

whitepaper title

Gartner Paper: US Data Centers - The Calm Before the Storm

U.S. enterprise data centers face considerable space and energy constraints over the next few years. Download this free independent report to read more..
whitepaper title

Making Green IT a Reality

Customer Perspectives on the Impact of Storage Vendor Decisions on Power, Cooling, & Space in Enterprise Data Centers.

Top 20 storiesAll The Week’s HeadlinesArchiveSearch