Skip to content

Instantly share code, notes, and snippets.

@sjyun
Created November 13, 2017 09:03
Show Gist options
  • Save sjyun/1497fc9cf9f486ba17e50cc8d5ad4bd7 to your computer and use it in GitHub Desktop.
Save sjyun/1497fc9cf9f486ba17e50cc8d5ad4bd7 to your computer and use it in GitHub Desktop.
querydsl
QUserEntity qUserEntity = QUserEntity.userEntity;
JPQLQuery<UserEntity> query = from(qUserEntity);
List<UserEntity> resultlist = query.where(qUserEntity.username.like(keyword)).fetch();
return resultlist;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment