You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating Micronaut Data dependencies to 2.4.1 jdbc queries for entities without id do not work anymore.
We are using timescale db as a postgresql extension. Up to 2.3.1 having entities without an id works pretty fine.
After upgrading to 2.4.1 we got into trouble, cause he throws an exception on not finding an id - which is intended from our side.
Task List
Steps to reproduce provided
Stacktrace (if present) provided
Example that reproduces the problem uploaded to Github
Full description of the issue provided (see below)
Steps to Reproduce
Update to Micronaut Data 2.4.1
Implement GenericRepository with JDBC-annotation
Having some entity with only colums like name, value, timestamp
Find data by a specific column like name
Expected Behaviour
JDBC repository should return data after querying by name.
Actual Behaviour
JDBC repository fails to retrieve data and throws an error.
SQL Error executing Query: Entity doesn't have an id!
io.micronaut.data.exceptions.DataAccessException: SQL Error executing Query: Entity doesn't have an id!
at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.findStream(DefaultJdbcRepositoryOperations.java:555)
at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.lambda$findAll$10(DefaultJdbcRepositoryOperations.java:579)
at io.micronaut.transaction.support.AbstractSynchronousTransactionManager.executeRead(AbstractSynchronousTransactionManager.java:155)
at io.micronaut.data.jdbc.operations.DefaultJdbcRepositoryOperations.findAll(DefaultJdbcRepositoryOperations.java:577)
at io.micronaut.data.runtime.intercept.DefaultFindPageInterceptor.intercept(DefaultFindPageInterceptor.java:56)
at io.micronaut.data.intercept.DataIntroductionAdvice.intercept(DataIntroductionAdvice.java:80)
at io.micronaut.aop.chain.MethodInterceptorChain.proceed(MethodInterceptorChain.java:96)
Environment Information
Operating System: Windows 10
Micronaut Version: 2.4.2
JDK Version: AdoptOpenJDK 11.0.11
The text was updated successfully, but these errors were encountered:
After updating Micronaut Data dependencies to 2.4.1 jdbc queries for entities without id do not work anymore.
We are using timescale db as a postgresql extension. Up to 2.3.1 having entities without an id works pretty fine.
After upgrading to 2.4.1 we got into trouble, cause he throws an exception on not finding an id - which is intended from our side.
Task List
Steps to Reproduce
Expected Behaviour
JDBC repository should return data after querying by name.
Actual Behaviour
JDBC repository fails to retrieve data and throws an error.
Environment Information
The text was updated successfully, but these errors were encountered: