Solved by adding
Map<String,String> s=new HashMap<String, String>();
s.put("hibernate.dialect","Hibernate.SQLightDialect.SQLiteDialect");
dbconfigurations.setProperties(s);
in
public class databaseConfiguration extends Configuration {
@Valid
@NotNull
@JsonProperty
DatabaseConfiguration dbconfigurations = new DatabaseConfiguration();
public DatabaseConfiguration getDatabaseConfiguration() {
//return dbconfigurations;
Map<String,String> s=new HashMap<String,String>();
s.put("hibernate.dialect","Hibernate.SQLightDialect.SQLiteDialect");
dbconfigurations.setProperties(s);
return dbconfigurations;
}
}
Another Solution read on the Web is adding it in yml file like:
database:
# the name of your JDBC driver
driverClass: org.postgresql.Driver
# the username
user: username
# the password
password: password
# the JDBC URL
url: jdbc:postgresql://localhost:5432/gis_database
properties:
hibernate.dialect: org.hibernate.spatial.dialect.postgis.PostgisDialect