Iam getting a bad error on casting.I don't know how to fix it..Please...help me to get out of this.springMVC collections and hibrnate 3.3.2 GA java.lang.Integer cannot be cast to java.lang.Long this exception is not giving any error...still it is not running...........Don't know..........Iam getting a bad error on casting.I don't know