Results 1 to 2 of 2
Thread: how can i done type castig
- 03-07-2011, 06:19 AM #1
Member
- Join Date
- Feb 2011
- Location
- chennai
- Posts
- 4
- Rep Power
- 0
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)
- 03-07-2011, 07:57 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
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.java.lang.NumberFormatException: For input string: "T"
Similar Threads
-
Setting values from One Enum type to another enum type.
By reach2sudhakar in forum New To JavaReplies: 3Last Post: 09-23-2010, 06:02 PM -
Arraylist of Type T
By blawknox04 in forum New To JavaReplies: 1Last Post: 12-11-2008, 05:55 AM -
using instanceof to get Object type and parent type?
By xcallmejudasx in forum New To JavaReplies: 2Last Post: 11-06-2008, 06:24 PM -
[SOLVED] Cast string type to int type
By GilaMonster in forum New To JavaReplies: 9Last Post: 09-17-2008, 10:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks