Enlightensoft's Blog

Helping in your each step

  • Categories

  • Authors

Some important facts about Hibernate

Posted by Pankil Patel on February 24, 2010

1) saveOrUpdate() can not be used with assigned identifiers. Also cascade=all can not be used with assigned identifiers because it implicitly calls saveOrUpdate().

2) composite-id should not having any nullable property as a key element.

If it is there in key element, with Hibernate 2 it will work well but Hibernate 3 onwords it will give null result for entire record instead of record with null value for that coloum.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: