-3

新しいプロジェクト コードをレビューしています。次の行が見つかりました。

 crudService.findByNamedQueryFirstResult("TableA.findby.custid", with(
                "custID", IndividulaID).and("flags", custflags).parameters())

どのクラスにも「with」と「and」のメソッドはありません。そして、文字列連結ではありません。JPQクエリにはandとandがあることを知っています。しかし、どうすれば上記のようにパラメータを渡すことができるでしょうか?

誰か助けてくれませんか?

4

2 に答える 2

0

This looks like a fluent-api (see http://java.dzone.com/articles/java-fluent-api-designer-crash for general definition)

In your case it may be spring-jpa, QueryDSL or similar framework.

To identify the API, you should have a look at the type/superclass/interfaces of crudService as well as the definitions of with/and/parameters.

于 2013-06-03T21:28:46.187 に答える