play--database
play--database copied to clipboard
Import and export to DB
Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.tool.hbm2ddl.SchemaExport.setImportFile(Ljava/lang/String;)Lorg/hibernate/tool/hbm2ddl/SchemaExport; at play.modules.db.Exporter.main(Exporter.java:123)
Does db-1.1.1 works completely on play-1.2.2, or is there the release plan of db-1.2?
when my db include fk , can't import gen java class. 14:30:01,760 INFO ~ Starting POJO Exporter ... 14:30:02,025 ERROR ~ Method public java.lang.String org.hibernate.tool.hbm2x.pojo.BasicPOJOClass.getJavaTypeName(org.hibernate.mapping.Property,boolean) threw an exception when invoked...
Using the db:import command on a project with a postgre backend db causes the following error. Tested on play 1.0.3 and 1.1 with db mod 1.0.2 and 1.1.1 ~ _...
Would be very useful to be able to just print sql commands (without making any real changes to a production db schema) which hibernate produces if you have set jpa.ddl=update...
After I typing this command and run : play db:export myapplication --output=c:\myfile.ddl I can't find the myfile.ddl in c driver
The module should be able to generate the alter table automatically. This is essentially a comparison between the current object model and the database tables.