Well I\'m trying to select all entities where entitie_id = *some id*
I do this with this rule:
List nodesugars = NodeSugar.
SugarORM currently uses toSQLName()
method of the StringUtil
class to generate names for columns
For example in your case:
List nodesugars = NodeSugar.find(NodeSugar.class, StringUtil.toSQLName("entitie_id")+" = ? ", String.valueOf(nodeid));
The other and neat way to do it would be to use the Select class:
List nodesugars = Select.from(NodeSugar.class).where(Condition.prop(StringUtil.toSQLName("entitie_id")).eq(nodeid)).list();
https://satyan.github.io/sugar/query.html