在使用Hibernate自动生成表结构时,若是字段是使用boolean定义的,则会出现语句不正确的错误。应该使用Boolean定义,也就是boolean的封装类型进行定义。 spa
如: private Boolean xx = false; co