Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<FolderMetadata> getFoldersByParentID(int parentId){
- try (DSLContext create = DSL.using(DB_URL)) {
- List<FolderMetadata> folders = create.select(FOLDER_METADATA.fields()).from(FOLDER_METADATA).where(FOLDER_METADATA.FOLDER_ID.equal(parentId)).fetchInto(FolderMetadata.class);
- return folders;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement