8/17/2023 0 Comments Jpe Java Prolog Environment![]() + "from user_campaign_objective u where u.campaign_id = ?1 group by u.objective_type_id,u.modified_at") if issue is not fixable then can we do it without using spring data jpa? How?Įdit:: Using JPQL :: new (count(u.objective_type_id),u.objective_type_id,u.modified_at) ".+ "user_campaign_objective where camp_id = ?1 group by objective_type_id,modified_at", nativeQuery = true) No converter found capable of converting from type to type ",īelow is my repository interface public interface UserRepository extends CrudRepository = "select count(type_id) userCount, type_id, modified_at from " I have different entity class and mapping to other dto as I do not want all the columns. ![]() ![]() I am using spring with JPA and trying to execute query using with SQL query.and trying to map the result to an object.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |