CF9 ORM映射问题DB错误

时间:2010-01-17 04:39:54

标签: hibernate orm coldfusion

我正在尝试映射一些ORM实体和属性,看起来应该是正确的,我得到以下SQL错误:

java.sql.SQLException: Error on rename of './reflexgym/user' to './reflexgym/#sql2-36b-30' (errno: 152)
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
  at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
  at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
  at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)
  at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1605)
  at com.mysql.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1524)
  at coldfusion.server.j2ee.sql.JRunStatement.executeUpdate(JRunStatement.java:182)
  at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:383)
  at org.hibernate.tool.hbm2ddl.SchemaExport.drop(SchemaExport.java:358)
  at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:258)
  at coldfusion.orm.hibernate.HibernateConfiguration.exportSchema(HibernateConfiguration.java:366)
  at coldfusion.orm.hibernate.HibernateConfiguration.initHibernateConfiguration(HibernateConfiguration.java:221)
  at coldfusion.orm.hibernate.HibernateConfiguration.<init>(HibernateConfiguration.java:141)
  at coldfusion.orm.hibernate.ConfigurationManager.initConfiguration(ConfigurationManager.java:69)
  at coldfusion.orm.hibernate.HibernateProvider.InitializeORMForApplication(HibernateProvider.java:182)
  at coldfusion.orm.hibernate.HibernateProvider.beforeApplicationStart(HibernateProvider.java:85)
  ...

1 个答案:

答案 0 :(得分:0)

查看解决方案的评论