[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Database schema generation with Annotations

ijb do-not-reply at jboss.com
Tue Jan 15 16:58:01 EST 2008


I am sorry I've clicked button too soon. Here is a sample from one of our targets that does exactly that:


  | <target name="schemaexport" depends="compile" description="Exports a generated schema to DB and file">
  | 		<hibernatetool destdir="${source.root}">
  | 			<annotationconfiguration configurationfile="${class.root}/hibernate.cfg.xml"/>
  | 					
  | 			<hbm2ddl drop="true" create="true" />
  | 		</hibernatetool>
  | 	</target>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120241#4120241

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120241



More information about the jboss-user mailing list