The Hibernate team has released Hibernate 3.0.
This version of Hibernate adds a new HQL parser (when compared to Hibernate 2.1), as well as some EJB 3 features, a statistics API, dialects for Derby and TimesTen, and many other changes.
Links:
-
Hibernate 3.0 goes final (36 messages)
- Posted by: Joseph Ottinger
- Posted on: April 01 2005 07:58 EST
Threaded Messages (36)
- Where is hbm2java for Hibernate 3? by David Ward on April 01 2005 08:17 EST
- Where is hbm2java for Hibernate 3? by Christian Bauer on April 01 2005 08:30 EST
-
Where is hbm2java for Hibernate 3? by David Ward on April 01 2005 08:51 EST
- Where is hbm2java for Hibernate 3? by Christian Bauer on April 01 2005 09:23 EST
-
Where is hbm2java for Hibernate 3? by David Ward on April 01 2005 08:51 EST
- Java is pass by value by michael cheung on April 01 2005 13:47 EST
-
Java is pass by value by Jon Skeet on April 01 2005 02:21 EST
-
Java is pass by value by Christian Bauer on April 01 2005 02:26 EST
-
Java is pass by value by han theman on April 02 2005 10:06 EST
- Java is pass by value by Emmanuel Bernard on April 02 2005 06:26 EST
-
Java is pass by value by han theman on April 02 2005 10:06 EST
-
Java is pass by value by Christian Bauer on April 01 2005 02:26 EST
- Java is pass by value by Juozas Baliuka on April 02 2005 02:39 EST
-
Objects passed by value --> :( by Chris M on April 02 2005 09:22 EST
-
Both are correct by Gavin King on April 02 2005 11:56 EST
-
Both are correct by michael cheung on April 03 2005 04:05 EDT
-
Both are correct by michael cheung on April 03 2005 04:11 EDT
-
Both are correct by Christian Bauer on April 03 2005 05:09 EDT
-
Both are correct by michael cheung on April 03 2005 05:18 EDT
- Both are correct by michael cheung on April 03 2005 05:21 EDT
-
Both are correct by michael cheung on April 03 2005 05:18 EDT
-
Both are correct by Christian Bauer on April 03 2005 05:09 EDT
-
Both are correct by michael cheung on April 03 2005 04:11 EDT
- Both are correct by Chris M on April 03 2005 08:58 EDT
- Both are correct by Paul Campbell on April 04 2005 04:18 EDT
-
Re: Both are correct by James Carman on April 04 2005 11:30 EDT
- Re: Both are correct by James Carman on April 05 2005 09:50 EDT
- Both are correct by George Jiang on July 08 2005 10:48 EDT
-
Both are correct by michael cheung on April 03 2005 04:05 EDT
- Objects passed by value --> :( by Jon Skeet on April 11 2005 02:25 EDT
-
Both are correct by Gavin King on April 02 2005 11:56 EST
-
Java is pass by value by Jon Skeet on April 01 2005 02:21 EST
- Where is hbm2java for Hibernate 3? by Christian Bauer on April 01 2005 08:30 EST
- Hibernate 3.0 goes final by Joe M. on April 01 2005 09:14 EST
- Hibernate 3.0 goes final by Christian Bauer on April 01 2005 09:18 EST
-
Hibernate 3.0 goes final by Joe M. on April 01 2005 09:22 EST
-
Hibernate 3.0 goes final by Christian Bauer on April 01 2005 09:32 EST
- Hibernate 3.0 goes final by Joe M. on April 01 2005 09:40 EST
-
Hibernate 3.0 goes final by Christian Bauer on April 01 2005 09:32 EST
-
Hibernate 3.0 goes final by Joe M. on April 01 2005 09:22 EST
- Hibernate 3.0 goes final by Christian Bauer on April 01 2005 09:18 EST
- TimesTen? What the %@#@$ is TimesTen? by Lori Olson on April 01 2005 11:09 EST
- You could always implement the Dialect yourself by Mike Bosch on April 01 2005 11:48 EST
- TimesTen? What the %@#@$ is TimesTen? by Christian Bauer on April 01 2005 11:51 EST
- TimesTen? What the %@#@$ is TimesTen? by John Davies on April 01 2005 12:44 EST
- Well done! by John Davies on April 01 2005 12:45 EST
- HIbernate3 and jdk1.3 by Max Grigoriev on April 01 2005 12:52 EST
- HIbernate3 and jdk1.3 by Juergen Hoeller on April 01 2005 13:12 EST
- Basic question of why upgrading? by Yann Perrin on April 05 2005 14:53 EDT
-
Where is hbm2java for Hibernate 3?[ Go to top ]
- Posted by: David Ward
- Posted on: April 01 2005 08:17 EST
- in response to Joseph Ottinger
First, congratulations and great job!
Second, I know there's been effort on the eclipse plugin work, but (speaking for myself), I prefer good 'ol vim + ant, and hbm2java is part of my build process. Just curious when we can expect a version of hbm2java that will work with H3. The reference documentation has been updated to mention org.hibernate.tool.hbm2java.CodeGenerator, but that's not downloadable yet (only the one that still depends on net.sf.hibernate).
Personally, I question the separate package. I had previously voiced my opinion here:
https://www.theserverside.com/news/thread.tss?thread_id=32172#159229
and rebutted the response here:
https://www.theserverside.com/news/thread.tss?thread_id=32172#159321
However, right about now I'd be happy (and grateful) enough to get the new version however I can.
Once again, though, thanks for the great product.
David -
Where is hbm2java for Hibernate 3?[ Go to top ]
- Posted by: Christian Bauer
- Posted on: April 01 2005 08:30 EST
- in response to David Ward
It will be included in the next tools alpha release, which is already on the Eclipse update sites. We are preparing a standalone download.
P.S. You have a better chance of being heard if you post to our forums. -
Where is hbm2java for Hibernate 3?[ Go to top ]
- Posted by: David Ward
- Posted on: April 01 2005 08:51 EST
- in response to Christian Bauer
Thanks, Christian. Until the standalone download is available, can you please post the direct Eclipse URL? I can't seem to find it... -
Where is hbm2java for Hibernate 3?[ Go to top ]
- Posted by: Christian Bauer
- Posted on: April 01 2005 09:23 EST
- in response to David Ward
Actually, the new tools release is being prepared today for the Eclipse update. So expect it this weekend or on Monday. I'll put an update on the Hibernate.org front page when we release. -
Java is pass by value[ Go to top ]
- Posted by: michael cheung
- Posted on: April 01 2005 13:47 EST
- in response to David Ward
Hey christian,
Gratz for the 3.0 final release. I was reading you book "hibernate in action". I think it is a great book to read. However, in chapter 3, you stated java is pass by reference for objects and pass by value for primitive. I don't think it is correct. I am not trying to say bad things about your book and hibernate. I am a big fan of your hibernate. I just don't want it to mislead people who will read your book in the future.
http://www.javaworld.com/javaworld/javaqa/2000-05/03-qa-0526-pass.html -
Java is pass by value[ Go to top ]
- Posted by: Jon Skeet
- Posted on: April 01 2005 14:21 EST
- in response to michael cheung
I'm glad I'm not the only one who gets cross about this kind of thing :)
It's a major bugbear of mine. Fortunately most books get it right these days, but there are always exceptions. It's a shame when Hibernate In Action is such an *excellent* book in other respects! -
Java is pass by value[ Go to top ]
- Posted by: Christian Bauer
- Posted on: April 01 2005 14:26 EST
- in response to Jon Skeet
It was a simplifaction made to help readers understand an anology. Also, some people already discussed this in the book forum: http://forum.hibernate.org/viewtopic.php?t=940107 -
Java is pass by value[ Go to top ]
- Posted by: han theman
- Posted on: April 02 2005 10:06 EST
- in response to Christian Bauer
It was a simplifaction made to help readers understand an anology.
I think most Java programmers understand the difference... -
Java is pass by value[ Go to top ]
- Posted by: Emmanuel Bernard
- Posted on: April 02 2005 18:26 EST
- in response to han theman
... so why does it took almost 500 words to explain the difference in the javaworld Q&A?It was a simplifaction made to help readers understand an anology.
I think most Java programmers understand the difference... -
Java is pass by value[ Go to top ]
- Posted by: Juozas Baliuka
- Posted on: April 02 2005 02:39 EST
- in response to michael cheung
"The method successfully alters the value of pnt1, even though it is passed by value; however, a swap of pnt1 and pnt2 fails! This is the major source of confusion."
It looks like author is going to confuse himself. -
Objects passed by value --> :([ Go to top ]
- Posted by: Chris M
- Posted on: April 02 2005 21:22 EST
- in response to michael cheung
I'm very tempted to say "Get a life!", but maybe I'm missing something behind all this "confusion".
I've always considered Java to pass primitives by value and Objects by reference and I don't think that is confusing at all. In fact, I've never even heard this was up for debate until reading this thread.
I read the JavaWorld article that was posted on the Hibernate forums about this, and the example they gave was crystal clear to me. I knew exactly why the code worked the way it did, and yet I still consider Objects passed by reference and primitives by value.
Is this incredible anality (yeah, that's a word) really useful to anyone? -
Both are correct[ Go to top ]
- Posted by: Gavin King
- Posted on: April 02 2005 23:56 EST
- in response to Chris M
Actually, I think both formulations are perfectly correct.
It is certainly true that "references to objects are passed by value". That tells us the semantics by which the hidden pointer is passed. It doesn't actually say anything at all about how the actual state of the object is passed.
And so it is also quite true that "objects are passed by reference". i.e. the object itself is most certainly passed as a reference. This is just another way of saying that it is the reference to the object that is the thing that is passed.
So both:
(1) references are passed by value
(2) objects are passed by reference
can simultaneously be true. -
Both are correct[ Go to top ]
- Posted by: michael cheung
- Posted on: April 03 2005 04:05 EDT
- in response to Gavin King
Omg, I can't believe you guys actually think java is pass by preference for objects. Maybe you need to go back to college and take the introduction for java class again..
http://javadude.com/articles/passbyvalue.htm
do some more google on "java pass by value" and read more explanation. -
Both are correct[ Go to top ]
- Posted by: michael cheung
- Posted on: April 03 2005 04:11 EDT
- in response to michael cheung
I was talking to Chris, not Gavin :) -
Both are correct[ Go to top ]
- Posted by: Christian Bauer
- Posted on: April 03 2005 05:09 EDT
- in response to michael cheung
I didn't write it, so you got the wrong guy for you little insult. But hey, I'm more used to it, so you're welcome :) Can we get back on topic? -
Both are correct[ Go to top ]
- Posted by: michael cheung
- Posted on: April 03 2005 05:18 EDT
- in response to Christian Bauer
I am not talking to you either, i was talking to chris M lol -
Both are correct[ Go to top ]
- Posted by: michael cheung
- Posted on: April 03 2005 05:21 EDT
- in response to michael cheung
I wouldn't insult you two. You guys gave me a free orm tools :) -
Both are correct[ Go to top ]
- Posted by: Chris M
- Posted on: April 03 2005 20:58 EDT
- in response to Gavin King
Actually, I think both formulations are perfectly correct.It is certainly true that "references to objects are passed by value". That tells us the semantics by which the hidden pointer is passed. It doesn't actually say anything at all about how the actual state of the object is passed.And so it is also quite true that "objects are passed by reference". i.e. the object itself is most certainly passed as a reference. This is just another way of saying that it is the reference to the object that is the thing that is passed.So both:(1) references are passed by value(2) objects are passed by referencecan simultaneously be true.
Yep.
My point was that understanding this shouldn't be a challenge to those who have any reasonable amount of programming experience, which probably includes just about anyone using Hibernate. -
Both are correct[ Go to top ]
- Posted by: Paul Campbell
- Posted on: April 04 2005 04:18 EDT
- in response to Gavin King
Actually, I think both formulations are perfectly correct.It is certainly true that "references to objects are passed by value". That tells us the semantics by which the hidden pointer is passed.
There is no hidden pointer - the pointer is always explicit.
If objects were passed by reference then
a.method1(null);
wouldnt be a valid construct.
Infact the only time an "object" ever comes into the picture is when member access takes place. For all other language contructs (such as assignment and parameter passing) its the reference that is explicitly manipulated BY VALUE.
Paul C. -
Re: Both are correct[ Go to top ]
- Posted by: James Carman
- Posted on: April 04 2005 23:30 EDT
- in response to Gavin King
Actually, that's not entirely true, Gavin. Passing by reference would allow you to change WHICH object the caller is pointing to...
public static void someMethod( String param )
{
param = "Some other string";
}
public static void main( String[] args )
{
String s = "Hello, World!";
someMethod( s );
System.out.println( s );
}
If it were truly pass by reference, this program would print "Some other string" as opposed to "Hello, World!". -
Re: Both are correct[ Go to top ]
- Posted by: James Carman
- Posted on: April 05 2005 09:50 EDT
- in response to James Carman
Oh, and great job by the way Hibernate folks! Hibernate is a heck of a product! Love it! I really like Hibernate3 now that the checked exceptions have gone away. Much easier to code this way. -
Both are correct[ Go to top ]
- Posted by: George Jiang
- Posted on: July 08 2005 10:48 EDT
- in response to Gavin King
So both:(1) references are passed by value(2) objects are passed by referencecan simultaneously be true.
and (3) objects in remote method calls are passed by value. -
Objects passed by value --> :([ Go to top ]
- Posted by: Jon Skeet
- Posted on: April 11 2005 02:25 EDT
- in response to Chris M
Yes, there is a point to being this pedantic.
"Pass by reference" semantics are very specific, and are different to "pass reference by value" semantics - in particular, changing the value of the parameter within the method has no effect on the parameter passed into the method. (Note that that's changing the value, which is the reference, not changing data within the object referred to.)
Those people who *do* know what pass by reference really means can easily get confused when they are told that Java passes objects by reference. They expect the statement to be true, so try changing the value of the parameter and then get confused when their program doesn't work.
There have been several people confused by this on the newsgroups (including the C# newsgroups - C# is like Java by default, with a modifier to make the parameter pass by reference).
I agree it's a slight distinction, and one which *most* Java programmers understand anyway, but I still think it's an important distinction. It's a bit like correcting people who talk about ASCII values over 127 :) -
Hibernate 3.0 goes final[ Go to top ]
- Posted by: Joe M.
- Posted on: April 01 2005 09:14 EST
- in response to Joseph Ottinger
The documentation links at hibernate.org for version 3.0 don't seem to work.
BTW Do you have any plans to implement a plugin for NetBeans? -
Hibernate 3.0 goes final[ Go to top ]
- Posted by: Christian Bauer
- Posted on: April 01 2005 09:18 EST
- in response to Joe M.
What links don't work? The links from this page are OK: http://www.hibernate.org/5.html
About Netbeans: The new tools effort seperates core functionality from user interface, so a different interface is naturally possible. We would need someone to do it though, our goal is to get the Eclipse-based frontend final first. -
Hibernate 3.0 goes final[ Go to top ]
- Posted by: Joe M.
- Posted on: April 01 2005 09:22 EST
- in response to Christian Bauer
-
Hibernate 3.0 goes final[ Go to top ]
- Posted by: Christian Bauer
- Posted on: April 01 2005 09:32 EST
- in response to Joe M.
Hm, I get a good HTML documentation page with this link in three browsers from three different networks. Probably on your side. -
Hibernate 3.0 goes final[ Go to top ]
- Posted by: Joe M.
- Posted on: April 01 2005 09:40 EST
- in response to Christian Bauer
Yup, it's a problem on my side. The links are fine -
TimesTen? What the %@#@$ is TimesTen?[ Go to top ]
- Posted by: Lori Olson
- Posted on: April 01 2005 11:09 EST
- in response to Joseph Ottinger
I've been a Java programmer since 1997, and I've never even heard of TimesTen before I read this article.
Why hasn't the JDataStore dialect been added? JDataStore is a pure Java database that's been around for years. A development version is distributed FREE with one of the most popular IDE's, JBuilder. You know, the *free* one that has more than 25,000 downloads *per week*...
I happen to know that the code for the dialect has already been written and submitted to the Hibernate developers (HB1423 and HHH-224)...
So where the heck is the JDataStore dialect?!? -
You could always implement the Dialect yourself[ Go to top ]
- Posted by: Mike Bosch
- Posted on: April 01 2005 11:48 EST
- in response to Lori Olson
If the JDataStore Dialect implementation is so important to you, then you could implement one. I don't have the source in front of me but I don't seem to recall the Dialect classes being overly complicated. -
TimesTen? What the %@#@$ is TimesTen?[ Go to top ]
- Posted by: Christian Bauer
- Posted on: April 01 2005 11:51 EST
- in response to Lori Olson
It will of course be included if it works - when we have time to do it. Sorry, but our TODO list is quite long and everybody who desperately needs a dialect can get it from JIRA anyway. It will eventually be on top of the stack and get done. -
TimesTen? What the %@#@$ is TimesTen?[ Go to top ]
- Posted by: John Davies
- Posted on: April 01 2005 12:44 EST
- in response to Lori Olson
TimesTen is a very important product for a lot of very large companies (see some of their customer here). It's not perhaps exciting from a Java developers point of view but it is a key player in the high performance database and grid scene, something I'm sure you're familiar with. I'd put serious money on the fact that these companies all use Oracle and/or other classic databases but TimesTen goes a hell of a lot further with their in-memory database/replication technology.
TimesTen is not the sort of thing that's going to look terribly impressive on a desktop machine so that might be why they are not know to many developers but they are a big player when things become enterprise.
-John- -
Well done![ Go to top ]
- Posted by: John Davies
- Posted on: April 01 2005 12:45 EST
- in response to Joseph Ottinger
Forgot to congratulate the Hibernate team, an excellent job on probably one of the most key technologies for the next 5 years.
-John- -
HIbernate3 and jdk1.3[ Go to top ]
- Posted by: Max Grigoriev
- Posted on: April 01 2005 12:52 EST
- in response to Joseph Ottinger
Is it possile to use Hibernate3 with IBM jdk1.3? I changed hibernate2 source code a little to compile under jdk 1.3. -
HIbernate3 and jdk1.3[ Go to top ]
- Posted by: Juergen Hoeller
- Posted on: April 01 2005 13:12 EST
- in response to Max Grigoriev
Is it possile to use Hibernate3 with IBM jdk1.3? I changed hibernate2 source code a little to compile under jdk 1.3.
Why did you have to recompile Hibernate for this? The jars as included in the distribution should run on JDK 1.3 out of the box...
Juergen -
Basic question of why upgrading?[ Go to top ]
- Posted by: Yann Perrin
- Posted on: April 05 2005 14:53 EDT
- in response to Joseph Ottinger
I am in the process of developing a project using Hibernate 2.1. Great job by the way.
I don't believe I have anything too fancy (using inheritance and associations). Apart from the goal of releasing software with the latests versions of dependent frameworks. Is there a compelling reason for me to go to the new version.
From what I have read caching would be one of them.
I would have loved to be able to use generics for my collections but I have seen it has been mentioned several times already, so no more on it.
Thanks