how can i done type castig
i am give my primary key i my hibernate configuration generic type is Long
but one more forms am want to designed.but one primary had Long datatype another form primary key have String type when am intialized on that time we had done typecating and insert and retrive the values succesfully.
but when i want edit the values they gave error like
Caused by: java.lang.NumberFormatException: For input string: "T"
at java.lang.NumberFormatException.forInputString(Num berFormatException.java:48)