-->
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: New bie question need help in setup
PostPosted: Fri Apr 14, 2006 9:10 am 
Newbie

Joined: Fri Apr 14, 2006 8:55 am
Posts: 6
Hi,

I am very new to hibernate and am trying to learn. Will really appreciate anyone's help. Can someone point to a documentation or tell me how to use:

cfg2hbm and hbm2java


I am trying to connect to OracleDB and learn how to setup hibernate. Do I need to manually create persistent classes and hdm.xml or hibernate.cfg.xml just need to provide.

I have a small table i.e.

Quote:
CREATE TABLE HIBER_TEST
(
ID NUMBER,
NAME VARCHAR2(1 BYTE),
CITY VARCHAR2(1 BYTE),
STATE VARCHAR2(1 BYTE)
)


Here are my DB connection settings:

Quote:
driver_class > oracle.jdbc.OracleDriver
password > value
url > jdbc:oracle:thin:@localhost:1521:orcl
username > usertest


If someone can provide step by step instructions will really be great and will help me keep going faster. Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 14, 2006 10:14 am 
Newbie

Joined: Thu Apr 13, 2006 9:03 pm
Posts: 3
The pertinent documentation can be found at this link:
http://www.hibernate.org/hib_docs/tools ... tml#d0e710


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 25, 2006 12:42 am 
Newbie

Joined: Fri Apr 14, 2006 8:55 am
Posts: 6
I don't find anything on how to use cfg2hbm and hbm2java

Can someone give a small example on how and when to use these tools.


Thanks


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.