Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Sat Jan 13, 2007 4:17 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
scarface wrote:
We were using long running session at one point but we had different set of problems with that..


I'm not saying it doesn't have a learning curve. But it has much more advantages than making a custom equals() unnecessary.

Can we close this thread now? Can we agree that any article that mentions the words "Hibernate" and "identity" in its title should explain the Hibernate identity map (the persistence context)?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 12:12 am 
Newbie

Joined: Mon May 29, 2006 5:39 pm
Posts: 6
Yes, I think it's time to finish this thread. I would like to summarize, and you can correct anything that's wrong:

I was originally concerned that you felt there was some factual error or problem with assigned ids within the context of detached objects. That appears not to be the case. The criticism mentioned is that I went off and enspoused a technique that solves problems that only arise when working with detached objects. Meanwhile I completely failed to mention the technique of extended sessions which eliminate the need to detach objects. Fair enough. I should have framed the context of the technique at the beginning of the article.

You've been promoting extended sessions for some time and seem frustrated that people are still choosing to detach their objects instead. Perhaps you should provide more links and direct references to the relevant material instead of just saying "read the book". Actually I've found the online material on the technique somewhat sparce and hard to find. This is compounded by the evolving terminology: what was originally "long session" (reference docs prior to 3.2 and HiA) is now "extended session" and "session-per-conversation" (reference docs 3.2, JPwH), which you've refered to here as "extended persistence context". Both books provide a much better description than any online material I've found.

To clarify in case anyone's interested:
Sparce description in the Reference Documentation:
http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#transactions-optimistic-longsession

Hibernate in Action: section 8.2.4

Java Persistence with Hibernate: section 11.2.3

Section in the wiki on the open session in view pattern:
http://www.hibernate.org/43.html#A5

Please extend this list with anything else you think people should read. I'll definitely add this summary to the article forums to make sure people have access to as much information as possible.

Cheers,
James


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 5:25 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There are many more resources and more documentation that explain "long session". There is not a single Hibernate concept that is better documented. I don't have the time to make a list for you.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 14, 2007 7:08 am 
Beginner
Beginner

Joined: Sat Dec 16, 2006 9:53 pm
Posts: 31
Location: Brisbane, Australia
christian wrote:
There are many more resources and more documentation that explain "long session". There is not a single Hibernate concept that is better documented. I don't have the time to make a list for you.


One is rather riding high this evening isn't one... don't fall off.


Top
 Profile  
 
 Post subject: Application controlled identity
PostPosted: Fri May 25, 2007 10:44 am 
Newbie

Joined: Thu Jul 13, 2006 10:48 am
Posts: 2
There is one last thing big drawback concerning application assigned identification.

What if your database is changed outside your Java program? What about distributed applications? Your database would become corrupt. That is why database assigned ID's are so much better then application assigned ID's.

And don't even get me started about having to debug a database full of UUID keys........ That just won't do.

It's my opinion that from a database design point of view using application asigned ID's as primary key's is poor design. Using UUID's is even worse.

I was missing this rather important point in the whole 'discussion' so I felt that I had to mention it.


Top
 Profile  
 
 Post subject: Re: "Don't Let Hibernate Steal Your Identity"
PostPosted: Tue Dec 14, 2010 5:29 am 
Newbie

Joined: Tue Dec 14, 2010 5:18 am
Posts: 1
Thanks for the amazing post

_________________
Shoe Steal


Top
 Profile  
 
 Post subject: Re: "Don't Let Hibernate Steal Your Identity"
PostPosted: Mon Jul 18, 2011 3:06 pm 
Pro
Pro

Joined: Mon Apr 16, 2007 8:10 am
Posts: 246
I just read the article on the OReilly website and found it enlightening.

Even if its headline and conclusion are wrong, it still was well written and explained well some important fundamentals of coding against a persistence store.


Top
 Profile  
 
 Post subject: Re: "Don't Let Hibernate Steal Your Identity"
PostPosted: Mon Jul 18, 2011 3:13 pm 
Pro
Pro

Joined: Mon Apr 16, 2007 8:10 am
Posts: 246
Now, if someone has some patience left to bear with my two cents "this" puzzle.. that'd be sweet :-)

viewtopic.php?f=1&t=1011804


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page Previous  1, 2, 3

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.