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
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.

with kind regards,
Peter
Reply all
Reply to author
Forward
0 new messages