简体   繁体   中英

Getting Error when add new field date in entity

Actually I am using Liquibase with Spring Boot and I added createAt column in database. And change my Entity and add extra field like this private LocalDate createdAt in my existing entity.

I'm getting the following error whenever trying to post or get request:

SQL Error: 1054, SQLState: 42S22 Unknown column 'restapient0_.created_at' in 'field list' Error performing load command : org.hibernate.exception.SQLGrammarException: could not extract ResultSet

I can't find create_at column anywhere in database

You are telling that you added a column named createAt but you created a field like private LocalDate createdAt which is not matching.

One place createAt and other place createdAt ?

Looks like a typo..Isn't it?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM