The introduction of other projects found that the use of Hibernatetemplate Load method error. The error message is:
The method load (class, Serializable) in the type hibernatetemplate are not applicable for the arguments (class, int)
The second parameter that means the Load method is the object that implements the serializable interface, and the int type does not conform. But the JDK automatically boxed, int will be converted to integer, and the integer is implemented serializable, so it should be possible. But myeclipse the error, because my myeclipse in the Window->preferences->java-compiler compiler compliance level is set to 1.4.
The solution is to window->preferences->java-compiler the compiler compliance level into 1.6.
or a forced conversion.
Change into
The method load (class, Serializable) in the type hibernatetemplate are not applicable for the arguments (class, int)