Advertisement
Guest User

Untitled

a guest
May 31st, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1. public int getLineIdByName(final String lineName) {
  2.         Line line = new Select()
  3.                 .from(Line.class)
  4.                 .where(Condition.column(Line_Table.line.getNameAlias()).eq(lineName))
  5.                 .querySingle();
  6.  
  7.         return line.getId();
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement