Skip to content

Commit

Permalink
Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
dstepanov committed Apr 18, 2024
1 parent 94f1fc7 commit 52b810e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1365,9 +1365,9 @@ interface AccountRepository extends GenericRepository<Account, Long> {
}
""")
def findOneByNameMethod = repository.getRequiredMethod("findOneByName", String)
def findAll__withAllTenantsMethod = repository.findPossibleMethods("findAll__withAllTenants").findFirst().get()
def findAll__withTenantBar = repository.findPossibleMethods("findAll__withTenantBar").findFirst().get()
def findAll__withTenantFoo = repository.findPossibleMethods("findAll__withTenantFoo").findFirst().get()
def findAll__withAllTenantsMethod = repository.findPossibleMethods("findAll\$withAllTenants").findFirst().get()
def findAll__withTenantBar = repository.findPossibleMethods("findAll\$withTenantBar").findFirst().get()
def findAll__withTenantFoo = repository.findPossibleMethods("findAll\$withTenantFoo").findFirst().get()
expect:
getQuery(repository.getRequiredMethod("findAll")) == 'SELECT account_.`id`,account_.`name`,account_.`tenancy` FROM `account` account_ WHERE (account_.`tenancy` = ?)'
getQuery(findOneByNameMethod) == 'SELECT account_.`id`,account_.`name`,account_.`tenancy` FROM `account` account_ WHERE (account_.`name` = ? AND account_.`tenancy` = ?)'
Expand Down

0 comments on commit 52b810e

Please sign in to comment.