How to use Dbmapper to generate JPA entity classes from DB script?

Posted by Sourabh on Stack Overflow See other posts from Stack Overflow or by Sourabh
Published on 2011-01-14T06:15:51Z Indexed on 2011/01/14 13:53 UTC
Read the original article Hit count: 250

Filed under:
|

I am tring to use http://code.google.com/p/dbmapper/ and I am not sure how to run it frmo the command prompt.

The sample usesege is like below

Usage: com.moonspider.dbmap.GenerateConfig
  -type (-t) [String] The type to generate, either 'jpa' or 'gorm' (experimental) (jpa)
  -destinationDirectory (-d) [String] Destination directory
  -url [String] The url of the database
  -pkg (-package) [String] The target package ()
  -user (-u) [String] Database user (sa)
  -password (-p) [String] Database password ()
  -globalExtends (-extends) [String] Class for all Java classes to extend
  -globalImplements (-implements) [String] Class for all Java classes to implement
  -driver [String] Database drive class
  -extension (-ext) [String] File extension for the generated code (java)
  -hibernate [String] Generate hibernate.cfg.xml to this directory
  -jaxb [flag] Enable xml binding generation
  -schema [String] Specify the non-default schema to use

How to run com.moonspider.dbmap.GenerateConfig from command line ?

© Stack Overflow or respective owner

Related posts about java

Related posts about dbmapper