0
我打算使用http://code.google.com/p/dbmapper/,我不知道如何在命令提示符下運行它。如何使用Dbmapper從DB腳本生成JPA實體類?
樣品usesege就像下面
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
如何運行命令行com.moonspider.dbmap.GenerateConfig
?