We discovered a strange behavior about the usage of Calendar and I was
wondering if this was expected :

There is a Calendar field in one of our JPA objects. If I try to use
this field through its getter method, the instance I got back is the
open jpa implementation of the Calendar interface, not Sun
implementation (i.e. not java.util.Calendar). We discovered this when we
try to call "add" on this implementation which openjpa implementation
doesn't support. We obviously do not want t use openjpa implementation
of the Calendar in our code. 

I was wondering if it is the right behavior ? Shouldn't openjpa give
java.util.Calendar back when it unserializes the Calendar field ?

Gul

Reply via email to