GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement

后端 未结 7 1291
太阳男子
太阳男子 2020-12-29 06:08

I am a novice in hibernate world and facing,

WARN: GenerationTarget encountered exception accepting command : Error executing DDL via JDBC Statement
org.hibe         


        
7条回答
  •  猫巷女王i
    2020-12-29 06:53

    The reason you are facing this error might be any of the reasons below:-

    • The column name in the DB Script and the model/entity class are different.
    • There is a spelling mistake in your configuration file while mentioning property value.
    • The MySQL version is not getting matched with the dialect that you are mentioning.

    I was facing this error because I change the column names in my DATABASE SCRIPT but forgot to change it in the Model/Entity class. So, after 4 hours of pulling my hairs I simply did this and my application started running.

提交回复
热议问题