The method load (Class, Serializable) in the type HibernateTemplate is not applicable for the arguments (Class, int), templatearguments
When someone else's project is introduced, an error is reported using the load method of HibernateTemplate. Error message:
The method load (Class, Serializable) in the type HibernateTemplate is not applicable for the arguments (Class, int)
The second parameter of the load method is the object that implements the Serializable interface. The int type does not match. However, if jdk is automatically packed, int will rotate to Integer, while Integer implements Serializable, so it should be possible. However, myeclipse reports an error because in myeclipse, the compiler compliance level in Windows> preferences> java-Compiler is set to 1.4.
The solution is to set the level of compiler compliance in window> preferences> java-Compiler to 1.6
Or force conversion.
Change