-->
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.  [ 2 posts ] 
Author Message
 Post subject: Neue (Noch nicht vorhandene) Datenbank erstellen, wie?
PostPosted: Fri Apr 07, 2006 9:02 am 
Newbie

Joined: Fri Apr 07, 2006 7:15 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:[/b]
3.0

[b]Name and version of the database you are using:[/b]
MySQL 5.0

kann mir jemand vielleicht zeigen wie ich eine neue, noch nicht vorhandene DB mit Hilfe von Hibernate, erstellen kann?
Danke


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 6:00 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Hallo,

erstellen muss Du die DB von Hand mit den entsprechenden
Tools des DB-Systems also hier MySQL.
Die Tabellen kann aber hibernate aus den Mappings erzeugen
bzw. aktualisieren. Dazu muss in der hibernate.cfg.xml
die Zeile:
Code:
<hibernate-configuration>

    <session-factory>
   
<property name="hibernate.hbm2ddl.auto">create</property>


eingefügt werden.

Dann einfach die Anwendung starten.

_________________
dont forget to rate !


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