Sugar ORM for Android cant find my column name

后端 未结 3 1775
-上瘾入骨i
-上瘾入骨i 2021-02-09 00:25

Well I\'m trying to select all entities where entitie_id = *some id*

I do this with this rule:

List nodesugars = NodeSugar.         


        
3条回答
  •  忘了有多久
    2021-02-09 00:55

    You should be able to query with "entitieid".

    Sugar ORM does some conversion when it creates the columns in the tables. Here is a basic example:

    String firstName; //creates column first_name
    int entitie_id;   //creates column entitieid
    

    The documentation only specifies the conversion from camel case to underscore separation. I had to figure the other one out.

提交回复
热议问题