Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7553777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:09:12+00:00 2026-05-30T11:09:12+00:00

I found this documentation http://docs.jboss.org/hibernate/core/4.0/manual/en-US/html/toolsetguide.html#toolsetguide-s1-3 saying that we can run SchemaExport using command line

  • 0

I found this documentation http://docs.jboss.org/hibernate/core/4.0/manual/en-US/html/toolsetguide.html#toolsetguide-s1-3 saying that we can run SchemaExport using command line

java -cp hibernate_classpaths org.hibernate.tool.hbm2ddl.SchemaExport options mapping_files 

Can someone please provide an example of how this is used? What is the format of the classpath (perhaps a example classpath), how do I do it with a hbm.xml mapping?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T11:09:14+00:00Added an answer on May 30, 2026 at 11:09 am

    Not a problem 🙂
    Example:

    java -cp "hibernate/*" org.hibernate.tool.hbm2ddl.SchemaExport --properties=hibernate.properties --text Person.hbm.xml User.hbm.xml
    

    Here “hibernate/*” means that you have a folder named “hibernate” with all libraries for hibernate (incl. hibernate3 of course).

    in my case:

    • antlr-2.7.6.jar
    • cglib-2.2.jar
    • commons-collections-3.1.jar
    • dom4j-1.6.1.jar
    • hibernate-testing.jar
    • hibernate3.jar
    • javassist-3.9.0.GA.jar
    • jta-1.1.jar
    • log4j-1.2.16.jar
    • slf4j-api-1.5.8.jar
    • slf4j-log4j12-1.6.1.jar

    You have to put in the current folder the file hibernate.properties (you can use hibernate.cfg.xml, but option will be –config instead of –properties. I.e. “–config=hibernate.cfg.xml”)

    –text – output to the console
    Next a list of necessary files *.hbm.xml.

    That’s all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The samples and documentation in question can be found here: http://static.springsource.org/spring-flex/docs/1.5.0.M1/ The reference doc
Examples found in the dojo documentation won't load in IE. Such as: http://docs.dojocampus.org/dijit/Calendar I've
I was playing around with some chrome extensions and I found this example: http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_url/
In good Altix manual (altix_single_cpu_optimization http://wwwuser.gwdg.de/~parallel/parallelrechner/altix_documentation/altix_single_cpu_optimization.pdf ) I've found this list of pragmas-hints for
Hi found below forum which describes not to use Spring hibernate template: http://forum.springsource.org/showthread.php?111771-what-is-the-difference-between-hibernate-template-and-hibernate-dao-support .
I found this example in the App Engine documentation . 1 <% 2 UserService
What's the Hi/Lo algorithm? I've found this in the NHibernate documentation (it's one method
I've found it very difficult to find any existing documentation on this. What I'm
found this regex: insert every 10 characters: $text = preg_replace(|(.{10})|u, \${1}. , $text); can
I found this open-source library that I want to use in my Java application.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.