Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema manag
来源:互联网 发布:下载淘宝网到桌面 编辑:程序博客网 时间:2024/05/16 05:12
这里通过 spring jpa 设计数据的时候,处理问题,问题如下
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException:
Unable to execute schema management to JDBC target
[create table order (id integer not null, order_time datetime, shop_id integer not null auto_increment, customer_id integer not null, car_id integer not null, primary key (shop_id, id, customer_id, car_id))]
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near
'order (id integer not null, order_time datetime, shop_id integer not null auto_i' at line 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order (id integer not null, orderTime datetime, car_id integer, customer_id inte' at line 1
看一下,可能数据哭的版本问题,或者是建立表的结构有问题,但是,一般人,都会先怀疑,是自己的pojo 映射表出现问题,
后来,测试,最简单的pojo还是有问题,于是,就怀疑是数据库的版本有问题,于是,我换了一个pojo的类名称,ok,搞定
之前,使用的是Order ,后来,改为 Item ,可能是数据库,把这个作为,一个系统的文件,不让改.所以....
- Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema manag
- org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL via JDBC Statement错误
- Caused by:org.hibernate.HibernateException:Unable to make JDBC Connection
- Caused by: org.hibernate.InvalidMappingException: Unable to read XML
- Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.
- Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.t
- Caused by: org.hibernate.TransactionException: unable to commit against JDBC connection
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/aop]
- Unable to locate Spring NamespaceHandler for XML schema namespace 【http://www.springframework.org/schema/context】
- Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.utils.NamespacePrefixList
- Caused by: java.lang.ClassNotFoundException: org.apache.ws.commons.schema.utils.
- Unable to create requested service [org.hibernate.engine.spi.CacheImple
- Caused by: org.hibernate.PersistentObjectException: detached entity passed to persist
- Caused by: org.hibernate.PropertyNotFoundException:
- org.springframework.beans.FatalBeanException: Unable to load schema mappings from location [META-INF/spring.schemas]
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/s
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/jaxws]
- Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/sc
- Linux上的NodeJS安装
- 朴素贝叶斯学习
- 算法导论读后感-之红黑树的性质
- Android系统下如何允许奥比中光3D传感摄像头USB设备访问
- linux下安装Anaconda
- Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Unable to execute schema manag
- 图像退化
- javascript版排二叉树
- ORACLE 正确删除归档日志的方法
- Windows环境下 sublime text 3 node环境配置
- 一些java小程序
- python: 列表以及元组
- 使用opencv进行车牌提取及识别
- 5分钟搞定内存字节对齐