PK read error

28 views
Skip to first unread message

Shan

unread,
Apr 20, 2013, 12:06:45 PM4/20/13
to scooter-...@googlegroups.com
Hi All,

My tables PK column has a "-" in its value. The framework throws the following error. 

Caused by: java.lang.IllegalArgumentException: Failed in convertToPrimaryKeyDataMap, the input string 'liveHUID-200' has 2 parts, while there are 1 parts for PK.
        at com.scooterframework.orm.activerecord.TableGateway.convertToPrimaryKeyDataMap(TableGateway.java:2296)
        at com.scooterframework.orm.activerecord.TableGateway.findByRESTfulId(TableGateway.java:368)
        at com.scooterframework.orm.activerecord.TableGateway.findByPK(TableGateway.java:414)
        at hubs.models.Hubsuser.findByPK(Hubsuser.java)
        at hubs.controllers.HubsusersController.show(HubsusersController.java:42)
        ... 40 more


Any help would be appreciated!

Thanks!
Shan

John Chen

unread,
Apr 20, 2013, 3:48:20 PM4/20/13
to scooter-framework
Scooter uses "-" in composite PK. See DatabaseConfig.PRIMARY_KEY_SEPARATOR. You may update this field as a quick workaround.


Shan

--
You received this message because you are subscribed to the Google Groups "Scooter Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scooter-framew...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Shanmugam Arthanari

unread,
Apr 21, 2013, 8:32:27 AM4/21/13
to scooter-...@googlegroups.com
Great. I have used '^' instead of '-' it works. Thanks for the quick response

You received this message because you are subscribed to a topic in the Google Groups "Scooter Framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scooter-framework/w52pVIBRquo/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to scooter-framew...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages