I have a query that reuses the same mapped element in spel:
That's my basic query:
staticfinalStringbasicQuery ="e.exerciseAttributes.strength >= :#{#program.minExerciseAttributes.strength} and "
+ "e.exerciseAttributes.endurance >= :#{#program.minExerciseAttributes.endurance} and "
+ "e.exerciseAttributes.balance >= :#{#program.minExerciseAttributes.balance} and "
+ "e.exerciseAttributes.strength <= :#{#program.maxExerciseAttributes.strength} and "
+ "e.exerciseAttributes.endurance <= :#{#program.maxExerciseAttributes.endurance} and "
+ "e.exerciseAttributes.balance <= :#{#program.maxExerciseAttributes.balance} and "
+ "e not in (select prepExercises from Program as program inner join program.prepExerciseList prepExerciseList join prepExerciseList.exerciseItems prepExercisesItems inner join prepExercisesItems.exercise prepExercises where program = :#{#program}) and "
+ "e not in (select postExercises from Program as program inner join program.postExerciseList postExerciseList join postExerciseList.exerciseItems postExercisesItems inner join postExercisesItems.exercise postExercises where program = :#{#program})";
@Query(name="Exercise.findAllByScore",value="select e from Exercise e where "
+ basicQuery)
List<Exercise> findAllByScore(@Param("program") Programprogram);
Where I have
program=:#{#program}
twice, Spring automatically increments to Synthetic_8, however it should be still referencing Synthetic_7.
Alisson Godoi opened DATAJPA-1223 and commented
I have a query that reuses the same mapped element in spel:
That's my basic query:
Where I have
twice, Spring automatically increments to Synthetic_8, however it should be still referencing Synthetic_7.
The error below is thrown:
Apologizes for the lack of extra information, however not sure to map the current pom.xml to the various versions
Issue Links:
("duplicates")
The text was updated successfully, but these errors were encountered: