spring data jpa foreign key query

http://jueshizhanhun.blog.51cto.com/4372226/1221791
Please let me know how to use the specification interface to query foreign keys.
For example, in select u from User where role.id = 1
, when querying users, you want to filter according to the role ID

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326941847&siteId=291194637