BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 372619 thumbnail
User 191976 avatar

By ganeshread
via gmarwaha.com
Published: Mar 01 2010 / 15:24

Now, when you insert an instance of User into the database, while specifying all null values for Address’s fields maybe because the user didn’t give his address, then what would you expect in return at some point in time when you retrieve this User back from the database.
  • 35
  • 7
  • 5343
  • 1

Comments

Add your comment
User 289539 avatar

michele.mauro replied ago:

1 votes Vote down Vote up Reply

Hibernate behaves as documented, but the user thought it would behave differently, and remains surprised. So what?
It's easy to be surprised if you don't read the documentation and start with false assumptions about a (quite complex) framework as Hibernate...

User 256244 avatar

amalter replied ago:

0 votes Vote down Vote up Reply

The problem is how complex it is. A good framework follows (as I assume the poster is alluding to), the principle of 'least surprise'

A great framework does what you expect.

Hibernate is approaching a critical mass of functionality and layering where the complexity budget is just too high for anyone not already intimate.

It's hard to disagree with the statement - "Hibernate always surprises"

User 204329 avatar

ddelponte replied ago:

0 votes Vote down Vote up Reply

I've found that GORM really makes hibernate easy to use
http://www.grails.org/GORM

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.