Carlos Ottoboni
05/09/2018, 11:50 AM@Modifying
@Transactional
@Query("DELETE FROM CollectionComicBook WHERE comic_book_id = ?1")
fun deleteByComicBookId(comicBookId: Long): Int
When I run this query it works ok, I can see in my database that the value is being deleted, however my service return this error:
"Modifying queries can only use void or int/Integer as return type!; nested exception is java.lang.IllegalArgumentException: Modifying queries can only use void or int/Integer as return type!
I've tried to change the return type to Long, Integer (from java), Unit and also leave it blank, but I'm still getting this error. I don't know what I can do to solve this. Anyone can help me with this?gdias
05/09/2018, 11:53 AMCarlos Ottoboni
05/09/2018, 11:54 AMCarlos Ottoboni
05/09/2018, 12:45 PMhho
05/09/2018, 12:52 PMCarlos Ottoboni
05/09/2018, 1:04 PM