Doesn´t work!
Type: Posts; User: Sergio Ricardo; Keyword(s):
Doesn´t work!
I execute the find of JpaTemplate class and the result is a ClassCastException, how to fix this?
In the code when the line "Subscription subsc = (Subscription) subscriptions.get(0)" is executed...
When I execute:
List<Subscription> subscriptions = getJpaTemplate().find("SELECT s FROM Subscription s WHERE s.subscriptionPK.id = ?1", idValue);
The list is populated with SubscriptionPK...
When I run my application with this context:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"...