-->
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: Does Hibernate create database tables? If so, how?
PostPosted: Fri Sep 10, 2004 6:25 pm 
Newbie

Joined: Fri Sep 10, 2004 6:19 pm
Posts: 2
Hi, I just started to play with the Auction example in the hibernate-2.1.6 package.

I did ant eg and ran the example successfully. What puzzles me is, I don't seem to find any table creation code/script, yet three tables were created. I noticed all String values are VARCHAR(255) and NUMBER(19) (I am using Oracle). How do I control this table creation process?

Thanks a lot in advance!

-James


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 11, 2004 12:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
sure, if configured to do so. it is based on the hibernate.hbm2ddl.auto config property. It uses its SchemaExport class to generate the DDL statements based on the mapping files. If you want to alter the way something about the table definition, its just a matter of adjusting the mapping files appropriately.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 11, 2004 8:16 pm 
Newbie

Joined: Fri Sep 10, 2004 6:19 pm
Posts: 2
Thanks. I found the sql-type as well as the property you mentioned and that should be it.


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.