Java bir entity oluşturup, veri tabanıdna dynamic veri çekmeye çalışyorum. Ama bir alttaki hatayı alıyorum, neyi gözden kaçırıyorum sizce.
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long calorieId;
private long userId;
private Date activityDate;
private Double activityCalorie;
2017-07-23 01:16:45.042 ERROR 4376 --- [nio-8080-exec-8] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.core.convert.ConversionFailedException:
Failed to convert from type [java.lang.Object[]] to type [com.example.entity.MyEntityName] for value '{27, 8}'; nested exception is org.springframework.core.convert.ConverterNotFoundException:
No converter found capable of converting from type [java.math.BigInteger] to type [com.example.entity.MyEntityName]] with root cause
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.math.BigInteger] to type [com.example.entity.MyEntityName] at org.springframework.core.convert.support.GenericConversionService.handleConverterNotFound(GenericConversionService.java:324) at org.springframework.core.convert.support.GenericConversionService.convert(GenericConversionService.java:206)
at org.springframework.core.convert.support.ArrayToObjectConverter.convert(ArrayToObjectConverter.java:66) ......................