Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2011
    Rep Power

    Default 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

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    java.lang.NumberFormatException: For input string: "T"
    Somewhere in your code, you are trying to convert the letter "T" as a number, which is not valid. If you read the complete track trace you can find the source code line number.

Similar Threads

  1. Setting values from One Enum type to another enum type.
    By reach2sudhakar in forum New To Java
    Replies: 3
    Last Post: 09-23-2010, 07:02 PM
  2. Arraylist of Type T
    By blawknox04 in forum New To Java
    Replies: 1
    Last Post: 12-11-2008, 06:55 AM
  3. using instanceof to get Object type and parent type?
    By xcallmejudasx in forum New To Java
    Replies: 2
    Last Post: 11-06-2008, 07:24 PM
  4. [SOLVED] Cast string type to int type
    By GilaMonster in forum New To Java
    Replies: 9
    Last Post: 09-17-2008, 11:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts