-
Notifications
You must be signed in to change notification settings - Fork 364
Description
benzen opened DATAJDBC-613 and commented
In a repository I have the following method
@Query("""
select start, "end", timesheet.state from timesheet
join time_entry on time_entry.timesheet = timesheet.id
where
time_entry.project_id in (:projectIds);
""")}}
public List<Timesheet> findByTimeEntryProjectIdIn(final List<Long> projectIds);
Here is the top part of the exception
An empty SqlIdentifier can't be used in to create column names
java.lang.UnsupportedOperationException: An empty SqlIdentifier can't be used in to create column names at org.springframework.data.relational.core.sql.SqlIdentifier$1.getReference(SqlIdentifier.java:68) at org.springframework.data.jdbc.core.convert.SqlGenerator.renderReference(SqlGenerator.java:705) at org.springframework.data.jdbc.core.convert.SqlGenerator.getBindMarker(SqlGenerator.java:152) at org.springframework.data.jdbc.core.convert.SqlGenerator.buildConditionForBackReference(SqlGenerator.java:234) at org.springframework.data.jdbc.core.convert.SqlGenerator.getFindAllByProperty(SqlGenerator.java:219) at org.springframework.data.jdbc.core.convert.DefaultDataAccessStrategy.findAllByPath(DefaultDataAccessStrategy.java:348)
It's unclear to me what is happening`` here.
I assume that it's related to the fact that one of my column use a reserved keyword.
Could not find anything related to this issue
Attachments:
- demo.zip (97.11 kB)