-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 43 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Hibernate Book
PostPosted: Tue Aug 03, 2004 7:33 pm 
Beginner
Beginner

Joined: Fri Jan 16, 2004 4:58 pm
Posts: 37
I am wanting to buy a book on Hibernate and am looking at Hibernate In Action and Professional Hibernate. I was wanting to get some votes for 1 or the other and a brief why would be nice as well.

Thanks.

_________________
Gregg Bolinger
Javaranch Sheriff
Weblog


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 7:43 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Oh, that "Professional Hibernate" is new to me, I have to read it. Looks like it will be out in October so I doubt anyone can tell you what's in it.

Stay away from the O'Reilly book, it's not good and has many errors.

Hibernate in Action is certainly the reference, since it was written by Gavin King and me, two Hibernate team members. I've seen so many mistakes and errors, even by very smart people, that I wouldn't trust anyone else writing about Hibernate or ORM. Maybe this will get better in the future, but I still think the average Java developer has much to learn about database applications.

I did a training two weeks ago and all 12 people said "No" when I asked "are database transactions mandatory?". We have a long way...

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 7:48 pm 
Regular
Regular

Joined: Tue Sep 30, 2003 11:27 am
Posts: 60
Location: Columbus, OH, USA
christian wrote:
I did a training two weeks ago and all 12 people said "No" when I asked "are database transactions mandatory?". We have a long way...


Seems like a pretty reasonable answer to me if you primarily work with MySQL <smile>

Scott


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 8:03 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I've just seen that the author of "Professional Hibernate" claims to be a committer on the Hibernate project. While I appreciate his effort and I always welcome more documentation about Hibernate, I have to clarify this issue.

Eric maintained (sometimes) the Avalon plugin for Hibernate, which had a place in the HibernateExtensions package.

As far as I currently see, we will remove those three classes soon, as they complicate the build process (they haven't even been released) and no-one is interested in the functionality (we don't maintain this for 5 people). We'd welcome Eric if he has other things to contribute, but so far we didn't receive anything else.

One of the press texts for Eric's book read: "The lead author is Eric Pugh, a key member of the Hibernate team; the book covers the new 2.2 Hibernate release"

It seems it is a bit outdated (there is no Hibernate 2.2 on the road map anymore), I wouldn't say that Eric is a key member of our team. He has commit access that will be revoked at some point (e.g. during a normal cleanup process), if there are no contributions.

There are currently 7 active committers on the Hibernate team and they work very hard every day to keep this project alive. I think they deserve this clarifying statement.

I'll also send this as an email to Eric.

Peace

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 8:32 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I order Hibernate in Action (pdf) and it is great book.

"are database transactions mandatory?" - answer is "no" - oracle don't open transaction for select - read consistency work with oracle SCN (oracle version
system)

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 8:41 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
*sigh* It's still a transaction scope.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 8:56 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
every transaction update SCN number (for +1) - select don't update SCN
I haven't to call 'begin' and 'edn transaction' in client for select

Why is it transaction ?

Postgresql gays tell that select is transaction - it is true for system without version control, but with version control select is only select - it don't update system.Postgresql have version control and do transaction for select ; I don't know why - it is from old postgres (without version control)

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 9:04 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Wrong. Don't call people gay who understand MVCC better than you.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 9:38 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
I'm sorry - it is type mistake (I think guys - I type 'edn transaction' in place of 'end transaction'). I don't wan to irritate nobody, but You don't answer me

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 9:47 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
I'm sure you can show us an example of your claim. I have Oracle installed, so I can do whatever you like me to do with it.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 10:15 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
Sure.
You have to only user on system - if You have another user then he can do transaction.

Try script from sqlplus :

set autocommit off

drop table t
/

create table t(n number)
/

select start_scnb,start_scnw -- 1
from v$transaction
/

insert into t values(1)
/

select start_scnb,start_scnw -- 2
from v$transaction
/

commit;
select start_scnb,start_scnw -- 3
from v$transaction
/


1 -- select return no rows - DDL (create table) do commit auto and we aren't in transaction
2 -- return one row - we are in transaction
3 -- return no rows, again

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 10:37 pm 
Beginner
Beginner

Joined: Fri Jan 16, 2004 4:58 pm
Posts: 37
I appreciate the responses regarding the book. If you guys would like to get into a transaction argument, please do so in a new thread. :)

I've just seen that the author of "Professional Hibernate" claims to be a committer on the Hibernate project. While I appreciate his effort and I always welcome more documentation about Hibernate, I have to clarify this issue. ...

That interesting. At least now I know which book not to get. Does HIA contain code that is compliant to the current release of Hibernate (2.1.4)? Or was it in editing prior to the current release? How much has changed since the book was finalized?

_________________
Gregg Bolinger
Javaranch Sheriff
Weblog


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 10:39 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
The book was finished yesterday, with the release of the eBook. It's current for Hibernate 2.1.x.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 11:14 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Fair enough, you don't need explicit transaction demarcation if read committed is good enough for your selects.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 03, 2004 11:30 pm 
Beginner
Beginner

Joined: Fri Jan 16, 2004 4:58 pm
Posts: 37
I didn't realize there was a forum for discussion of HIA. So if someone wants to move this...

_________________
Gregg Bolinger
Javaranch Sheriff
Weblog


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 43 posts ]  Go to page 1, 2, 3  Next

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.