I changed the entity UserInfoEntity
, variable name from 'moblie' to 'mobile', and then I restarted my server. when I looked at the table i found that the table hasn't removed the column 'moblie'. Here is my change in entity;
From this;
@Entity
@Table(name = "pe_userinfo")
public class UserInfoEntity {
private String moblie;
}
to this;
@Entity
@Table(name = "pe_userinfo")
public class UserInfoEntity {
private String mobile;
}
javax.persistence.schema-generation.*
. In general a JPA provider is not the most appropriate tool to handle schema upgrading ... better to use Liquibase/Flyway for that – Duckworthspring.jpa.hibernate.ddl-auto
it is well within JPA, no problem to access them at all. – Bipropellant