Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

SchemaExportTask Works, but not really

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used the SchemaExportTask in my build file to export my mapping files to an SQL script. It works, however, the statements in the .sql file aren't terminated with a ; therefore you can't just pull that file into phpMyAdmin or some other tool to create the database from that file. It complains because of the missing ;. Is there a switch or something I might be missing?
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, the delimiter switch. Here is a sample below.

<schemaexport
properties="hibernate.properties"
quiet="no"
text="yes"
drop="no"
delimiter=";"
output="export.sql">
<fileset dir="${src.source.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dennis John:
Yes, the delimiter switch. Here is a sample below.

<schemaexport
properties="hibernate.properties"
quiet="no"
text="yes"
drop="no"
delimiter=";"
output="export.sql">
<fileset dir="${src.source.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaexport>



Missed that one. Perfect, thanks a bunch.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic