Using String as a primary key gives numberformatexceptions
3 views
Skip to first unread message
Peter Bierman
unread,
Apr 27, 2011, 1:55:30 AM4/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dpHibernate
Hi,
We're using UUID string based types as a primary key in our database.
Lazy loading seems to work fine but if i use the paging functionality
i get NumberFormatExceptions when scrolling in my datagrid.
I traced the problem back to the ProxyLoadService loadbean method.
It checks if id is an instanceof String (which it is) and then tries
to do a parseInt on the string which will fail because the string is
not a number but an uuid.
I'm not certain where i should start to look for a solution to this
problem so any help would be much appreciated.
I can easily share code samples if that's desired but i'm also not
sure which part of my code would be appropiate to paste here.