Exception for using primitive type as id with SPRING and Eclipselink
I am moving my project to SPRING using Eclipselink as JPA provider. After declaring the @Repository and @Service classes and run the application I get an exception that seems to forbid the use of primitive types ad entity IDS: