Hibernate with MySQL - a beginners guide - part 3

Ian P. Christian's personal blog

Quicksearch

Recent Entries

Calendar

Back July '09
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Blog Administration


Trackbacks

Hibernate with MySQL - part 4 - annotations and maven
In the last part of my hibernate tutorials I showed how to get a simple application inserting data into a database. This part doesn't expand on that in terms of features, in fact, this tutorial actually does less! However, the last tutorial required
Weblog: Ian P. Christian's personal blog
Tracked: Sep 26, 22:55

Comments
Display comments as (Linear | Threaded)

Thanks this tutorial works, and easy to understand as i m new to java hibernate it helped my lot.

Thanks
VM
#1 Vijay on 2008-08-16 10:36 (Reply)
Thanks for the tutorial! It's great. I'm looking forward to reading the fourth part.
Best regards,
Danut
#2 Danut (Homepage) on 2008-09-11 11:01 (Reply)
Hi Every One, This tutorial is awesome for beginners ,
really helped me a a lot
thank you very much for this
#3 rahul on 2008-09-25 18:20 (Reply)
Your tutorials are great and very easy!!!!

I had problems with this last one but was able to find the problem.

Error I got:

compile:
[javac] Compiling 4 source files to C:\hibernate\bin
[javac] C:\hibernate\src\uk\co\pookey\BlogApp.java:57: warning: [unchecked]
unchecked conversion
[javac] found : java.util.List
[javac] required: java.util.List
[javac] .list();
[javac] ^
[javac] 1 warning

run:
[java] log4j:WARN No appenders could be found for logger (org.hibernate.cfg
.Environment).
[java] log4j:WARN Please initialize the log4j system properly.
[java] Exception in thread "main" java.lang.NoClassDefFoundError: antlr/ANT
LRException
[java] at org.hibernate.hql.ast.ASTQueryTranslatorFactory.createQueryTr


So what I did is added antlr-2.7.6.jar to the C:\hibernate\lib.

Thank you for the help!!!!!
#4 no0user@hotmail.com on 2008-12-13 15:54 (Reply)
Superb,
Brilliant tutorial for the beginners like me.I got to know the abc of hibernate.
Great work and here is a BIG THANKS.
keep making life arround better.keep it up.
#5 krishna on 2009-05-26 09:14 (Reply)
Hi all,
while commiting session.getTransaction().commit(); is being used,which in turn gets a new transaction and commits it rather than commiting the intended transaction on which operations has been performed.

so I think we need to collect the Transaction in a Transaction type variable and then commit the same so that this transcation will be committed to the database.
#6 krishna on 2009-05-26 09:43 (Reply)

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
 
Submitted comments will be subject to moderation before being displayed.