users@jpa-spec.java.net

[jpa-spec users] [jsr338-experts] StoredProcedureQuery and temporal parameters

From: Steve Ebersole <steve.ebersole_at_redhat.com>
Date: Fri, 02 Aug 2013 18:49:38 -0500

Another TCK oddity. I plan on challenging this one too, but wanted to
make sure first:

StoredProcedureQuery spq3 =
getEntityManager().createStoredProcedureQuery("GetEmpIdUsingHireDateFROMOut");
spq3.registerStoredProcedureParameter(1, Calendar.class, ParameterMode.IN);
spq3.setParameter(1, getUtilDate());

getUtilDate() returns is a Date. I don't see where the spec says this
should be valid. Specifically, this registers a parameter and tells the
provider to expect a Calendar; it then bind a Date.