Advertisement
Coriic

Untitled

Jan 11th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. public List<FolderMetadata> getFoldersByParentID(int parentId){
  2. try (DSLContext create = DSL.using(DB_URL)) {
  3. List<FolderMetadata> folders = create.select(FOLDER_METADATA.fields()).from(FOLDER_METADATA).where(FOLDER_METADATA.FOLDER_ID.equal(parentId)).fetchInto(FolderMetadata.class);
  4. return folders;
  5. }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement