-->
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.  [ 3 posts ] 
Author Message
 Post subject: Without using Ant method, how can i make habernate work
PostPosted: Thu Oct 20, 2005 8:27 am 
Newbie

Joined: Thu Oct 20, 2005 7:48 am
Posts: 19
Hi,
I have done by ant.
Project works ok.

but how can i do same without ant.
I m using JBuilder and Sybase database.

My hibernate.cfg.xml is as below.

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

<session-factory>

<!-- Database connection settings -->
<property name="connection.driver_class">com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource</property>
<property name="connection.url">jdbc:sybase:Tds:sipl48:5000/Test</property>
<property name="connection.username">jpanchal</property>
<property name="connection.password">jpanchal</property>

<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>

<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.SybaseDialect</property>

<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>

<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">create</property>

<mapping resource="customer/Customer.hbm.xml"/>

</session-factory>

</hibernate-configuration>

If u can help


Top
 Profile  
 
 Post subject: Re: Without using Ant method, how can i make habernate work
PostPosted: Thu Oct 20, 2005 9:15 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
What exactly doesn't work ?


http://www.hibernate.org/ForumMailingli ... AskForHelp

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 9:19 am 
Beginner
Beginner

Joined: Thu Aug 04, 2005 2:24 pm
Posts: 45
Forget about ant. Follow the steps from here: http://www.hibernate.org/hib_docs/v3/reference/en/html/quickstart.html.

Pay close attention to the amount of jars in your lib directories, which is mentioned there.

I mean, put the jars in the correct places described in the tutorial, use the HibernateUtil class, and you should be good to go.

_________________
Eduardo Mylonas


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