View Single Post
  #3 (permalink)  
Old January 12th, 2016, 10:21 AM
beamerblvd beamerblvd is offline
Wrox Author
Points: 36, Level: 1
Points: 36, Level: 1 Points: 36, Level: 1 Points: 36, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2014
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That's not the correct fix, because it reduces type safety in the code. But I can't figure out why this isn't working for you.

This code was tested with org.eclipse.persistence:javax.persistence:2.1.0. That's the same version you are using, but it's possible you're using a different library. Are you using org.eclipse.persistence:javax.persistence or something else? What's your full Java version? Who supplied the compiler (Oracle, Eclipse, or some other company)?
__________________
-- Nick Williams
Reply With Quote