|
From: JP P. <jp....@ti...> - 2004-03-03 07:42:07
|
Hi, Once more, the long type handling was missing. I just added the straightforward queryForLong method in JdbcTemplate. If we want have a sole method, the longs can always be casted in ints. The contrary is not possible. Here, it's make sense to keep both methods. The PetClinic sample should use the new method. It uses longs as Ids but passes thru the queryForInt method. In the case of the sample, the values will always in the range of ints, but here is a type mismatch handling between longs and ints. Jean-Pierre Pawlak |