-->
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.  [ 13 posts ] 
Author Message
 Post subject: New Tutorial for Hibernate, Spring, Middlegen, and XDoclet
PostPosted: Thu Apr 29, 2004 9:44 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 9:36 am
Posts: 28
I've written up a tutorial covering setting up and using Hibernate, Spring, Middlegen, and XDoclet together. I wasn't sure if this is the correct place to post this or if I should post it under a different forum. Anyway, the link is:

http://www.warfrog.com/hibernatetutorial/

I hope someone can find the tutorial useful. Additionally, I


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 10:19 pm 
Beginner
Beginner

Joined: Thu Jan 08, 2004 4:40 am
Posts: 48
Location: Bangkok, Thailand
That's awesome mate, really useful
Cheers

_________________
<name>arin</name>
<at>netplus software</at>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2004 11:58 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Added link to the wiki community page.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2004 9:59 pm 
Beginner
Beginner

Joined: Thu Apr 29, 2004 9:36 am
Posts: 28
Great, glad to hear people are finding it useful.

Cheers,
Tyler


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2004 10:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Nice tutorial. I have been meaning for some time to create better intro-docs for Middlegen / Hibernate. Alas time :-(. Your tutorial will help quite a few people i'm sure.


Top
 Profile  
 
 Post subject: I been looking for a Spring/Hibernate Tutor Thanks!
PostPosted: Thu May 20, 2004 3:52 pm 
Beginner
Beginner

Joined: Tue May 11, 2004 10:21 am
Posts: 20
I been looking for a Spring/Hibernate Tutor Thanks!

Tom K


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 6:16 am 
Newbie

Joined: Mon May 24, 2004 6:08 am
Posts: 2
Hello,

Been going through the tutorial and I came to a grinding stop. When I reached the 'Using Middlegen' part I encountered an odd thing. When I ran the ant script for middelgen (ant middlegen) I got a message (see below) that I was to wait for the process to read all tables. Well, I have been waiting a long time and nothing has changed. I still haven't figured out what it is that I'm doing wrong.

Any suggestions?

Thank you

flauel

C:\working\hibernatetutorial\apps\middlegen\Middlegen-Hibernate-r4>ant middlegen
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:
[echo] Class path = C:\working\hibernatetutorial\apps\middlegen\Middlegen-Hibernate-r4
[middlegen] (middlegen.Middlegen 352 ) Registering plugin simple->middlegen.Plugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin java->middlegen.javax.JavaPlugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin plugin->middlegen.Plugin
[middlegen] (middlegen.Middlegen 352 ) Registering plugin hibernate->middlegen.plugins.hibernate.HibernatePlugin
[middlegen] Database URL:jdbc:hsqldb:hsql://localhost
[middlegen] No <table> elements specified. Reading all tables. This might take a while...


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 7:21 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 9:36 am
Posts: 28
Flauel,

That process usually only takes 10-15 seconds at most on my machine , a P4 2.4Ghz. I'd suggest stopping/restarting HSQL and Middlegen. Additionally, make sure you have the database setup correctly, the HSQL server is running and check that you're running HSQL 1.7.1 (not a newer version).

Cheers,
Tyler


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2004 5:45 am 
Newbie

Joined: Mon May 24, 2004 6:08 am
Posts: 2
I was running a newer version of HSQL (hsqldb_1_7_2_RC_6a).

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 03, 2004 3:07 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
Hi Tyler, I've found a little mistake/inconvenience in your applicationContextFactory.

The ClassPathXmlApplicationContext isn't a single instance. For your tutorial this works fine, but as soon as you retrieve different beans from the applicationContextFactory, it generates new ClassPathXmlApplicationContext objects resulting in multiple sessions being opened, etc.

I've had some problems with this, since after following your helpful tutorial, I used your applicationContextFactory again in my own project.

Kind regards

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 03, 2004 9:56 am 
Beginner
Beginner

Joined: Thu Apr 29, 2004 9:36 am
Posts: 28
Peter,

That's really funny, because I literally JUST fixed that last night. I didn't write that code though, it was developed by Richard Hightower (rhightower@arc-mind.com). I converted the version I'm using to return a singleton instance. If you'd like I'd be more than happy to post the modified code, just a warning, I haven't cleaned it up/refactored it.

Cheers,
Tyler

P.S. Thanks for the feedback.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 03, 2004 10:49 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
tylerpitchford wrote:
That's really funny, because I literally JUST fixed that last night.


fear my psychic skills :)

About the modified code, I've written my own singleton this morning so it's not really necessary.

Peter


Top
 Profile  
 
 Post subject: Hibernate Tutorial
PostPosted: Wed Dec 16, 2009 1:35 pm 
Newbie

Joined: Thu Apr 10, 2008 3:17 pm
Posts: 3
This is another hibernate tutorial split in two parts. It starts with the basic set up in eclipse along with screen shots

Hibernate Tutorial - Part 1

Hibernate Tutorial - Part 2

This tutorial is with Spring and JPA

Spring JPA Tutorial

Hope you guys find it useful.

Emmanuel can you please add them to wiki community page ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 13 posts ] 

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.