I'm using SpringBoot 1.5.14.RELEASE and com.h2database:h2. I have an entity that looks like this
//.... annotations here
public class SomeEntity {
@Id
private Long id;
@Column(name = "some_columne_name", columnDefinition = "FLOAT(10,7)")
private Double someColumnName;
}
The H2 is started with spring.jpa.generate-ddl=true and spring.jpa.hibernate.ddl-auto=create
But for some reason, H2 does not create the table because later in the code, when a select query run it throws SQL Error:42102, Table not found
if I start H2 without the columnDefinition in the entity then it creates the table successfully
How to create tables in H2 with columnDefinition in entities ?