Programmers learn & share
0 votes

Problem :

After executing spring boot with h2 database and JPA i am facing below error
org.hibernate.tool.schema.spi.commandacceptanceexception: error executing ddl via jdbc statement
by (6.9k points)   | 2.3k views

1 Answer

0 votes

Solution :

It seems your Entity Field names are matching with SQL reserved keywords,

So now you need to try and change the field names otherwise use the name attribute with @Column Annotation which should give alias names to the DATABASE as shown below:

    private String from;

    private String to;

    private BigDecimal conversionMultiple;
    private int port;
If you follow above aproach then your issue will be resolved.
by (36.1k points)  
2,227 questions
2,734 answers
241 users