-->
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.  [ 4 posts ] 
Author Message
 Post subject: Newbie Getting Underway
PostPosted: Wed Jan 04, 2006 4:00 pm 
Beginner
Beginner

Joined: Thu Dec 15, 2005 12:02 pm
Posts: 23
I have completed my full reading of "Hibernate In Action". Throughout my reading, there have been gray areas, and areas where I got it.

Anyway, I want to get more hands on, so according to the "About the book" section, it states to try and ownload the CaveatEmptor example and play with it.

So I followed the download, and downloaded the original version, not the version2 .

I extracted the zip file and had ant do a build. Now I have the package standalone, and all classes there.

Question is ... how to run these? Is it command line only, and if so which files are the candiate runners?

Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 4:40 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is a Readme file in there.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 4:43 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Since Hibernate in Action is now getting a bit old, I recommend you make your first steps on Hibernate3 and follow the reference tutorial for your first experiments:

http://www.hibernate.org/hib_docs/v3/re ... orial.html


Top
 Profile  
 
 Post subject: the readme does not help ... much
PostPosted: Wed Jan 04, 2006 5:15 pm 
Beginner
Beginner

Joined: Thu Dec 15, 2005 12:02 pm
Posts: 23
Charistian,
I have read the readme, and it says to try and run the ant junitreport. So I added all the libs from the xalan download, to my lib, but it still blows up.

What is the intent of this download? Is it just for the junit stuff?

Error:

Buildfile: build.xml

cleantestdb:
[delete] Deleting 2 files from C:\technologies\hibernate_in_action\caveatemptor

clean:
[delete] Deleting directory C:\technologies\hibernate_in_action\caveatemptor\build
[delete] Deleting directory C:\technologies\hibernate_in_action\caveatemptor\testout

compiletest:
[mkdir] Created dir: C:\technologies\hibernate_in_action\caveatemptor\build\standalone
[javac] Compiling 52 source files to C:\technologies\hibernate_in_action\caveatemptor\build\standalone
[copy] Copying 12 files to C:\technologies\hibernate_in_action\caveatemptor\build\standalone

junit:
[mkdir] Created dir: C:\technologies\hibernate_in_action\caveatemptor\testout
[junit] Running org.hibernate.auction.test.AllTests
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 13.656 sec



junitreport:

BUILD FAILED
C:\technologies\hibernate_in_action\caveatemptor\build.xml:98: Could not find xalan2 nor xalan1 in the classpath. Check http://xml.apache.org/xalan-j

Total time: 44 seconds




Here is readme:
Hibernate Application: CaveatEmptor (HiA)
=====================================================
version 0.9.5, 13. August 2004


Purpose
-----------------------------------------------------

CaveatEmptor is an online auction system, it has
entities such as item, user, and bid. This Hibernate
demo application was originally written for the book
"Hibernate in Action", published by Manning Inc.

This software is distributed under the terms of the FSF
Lesser Gnu Public License (see LGPL.txt).

CaveatEmptor is distributed in several packages, each
having a different focus. This is the "HiA" version,
which only implements the persistence layer of the book
"Hibernate in Action".


Install & Run
-----------------------------------------------------

This particular version (HiA) is not fully runable, it is
only the implementation of the persistence layer of
the CaveatEmptor example application used in "Hibernate
in Action".

Use this source code as a reference when learning Hibernate
with "Hibernate in Action". You can copy (or re-implement if
the LGPL is not your license) parts of the persistence layer
infrastructure, such as HibernateUtil, HibernateFilter, etc.
for your own project.

You can check the functionality of the persistence layer
by using the provided JUnit tests, run "ant junitreport" for
a test using the bundled HSQL database. Change the database
settings in src/java/hibernate.cfg.xml if you'd like to use
different settings. After the test runs successfully, browse
the test result in the testout/ directory.

The dtabase schema will be automatically imported and dropped
from your database for each unit test. Run "ant exportddl"
if you want to look at the schema, it creates caveatemptor.ddl.

Note: Ant 1.6.x is required, but unfortunately ships with all
optional tasks in $ANT_HOME/lib. This leads to unexpected
classloader problems. Copy lib/junit.jar to $ANT_HOME/lib to
solve this problem temporarily. This might only work on some
systems, on others, remove ant-junit* and ant-xalan* from
$ANT_HOME/lib. See the Ant documentation and FAQ for more
details and don't hesitate to ask the Ant developers.

Note: The unit tests will not work on a MySQL database without
support for SQL subselects!

Contact & Forum
-----------------------------------------------------

http://caveatemptor.hibernate.org/
http://forum.hibernate.org/viewforum.php?f=7


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.