pepite/play--database — Issue #8: can't import view
Author: plextoria
Created: 2011-11-29 15:30:57+00:00
State: open

Hello,

play db:import fails when I try to import a database with a view. It's probably a Hibernate bug anyway, but any ideas on how I can skip this?

```
14:28:05,919 WARN ~ Rev.eng. strategy did not report any primary key columns for tariffs_view
Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.mapping.SimpleValue.(Lorg/hibernate/mapping/Table;)V
at org.hibernate.cfg.JDBCBinder.bindColumnToSimpleValue(JDBCBinder.java:589)
at org.hibernate.cfg.JDBCBinder.bindPrimaryKeyToProperties(JDBCBinder.java:443)
at org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:174)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:91)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
at play.modules.db.Importer.main(Importer.java:164)

```