I have a mssql running on docker and I can create, insert, drop tables on it. I even did functioning data source connection in Intellij. BUT, I somehow cant use my database in Quarkus. I should be getting a list of my customers from my customer table, but instead get this:
HTTP/1.1 500 Internal Server Error
**
"details": "Error id 88c15296-a498-4760-995b-65421a440ba1-1, **java.lang.NullPointerException: **Cannot invoke "org.hibernate.metamodel.mapping.DiscriminatorType.getJdbcJavaType()" because "this.discriminatorType" is null"
quarkus.datasource.db-kind=mssql
quarkus.datasource.username=sa
quarkus.datasource.password=Yasin67$
quarkus.datasource.jdbc.url=jdbc:sqlserver://localhost:1433;databaseName=Terminplaner;encrypt=true;trustServerCertificate=true
quarkus.hibernate-orm.dialect=org.hibernate.dialect.SQLServerDialect`
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/kunden")
public List<Kunde> getAllKunden() {
return repository.getAllKunden();
}
I checked if there are values in my tables and there are. The database is working normal: I can create, insert, update, drope tables.
Please help me out