babyfish-ct / jimmer

A revolutionary ORM framework for both java and kotlin.
Apache License 2.0
715 stars 72 forks source link

jimmer不能关闭某个Repository的sql日志吗 #635

Closed Atomzzm closed 1 week ago

TokgoRonin commented 1 week ago

Two possible solutions:

  1. Within each method: Use sql().executor(DefaultExecutor.INSTANCE)
  2. In the repository interface: Create a global SqlClient instance:
    JSqlClient sqlClient = JSqlClient.newBuilder().setExecutor(DefaultExecutor.INSTANCE).build();

    This approach requires you to manually inject any necessary interceptors or other components into your project (if applicable).