2 title: utilityPackageName
3 date: 2019-09-27T18:51:08+02:00
15 The base package name for JDBC utility classes in generated code. Defaults to `com.example.persistence.util`.
17 ## Configuration Options
19 ### Option: 'com.example.persistence.util'
21 The default value of the `utilityPackageName` configuration option is `com.example.persistence.util`. Setting the option to `com.example.persistence.util` therefore produces the same code generated as the default configuration without any configuration option set. It produces code similar to this:
24 package com.example.persistence.util;
26 public class SomeUtility {
28 // ... rest of generated code
33 ### Option: 'your.own.domain.util'
35 Changing the `utilityPackageName` configuration option to `your.own.domain.util` generates the following code instead:
38 package your.own.domain.util;
40 public class SomeUtility {
42 // ... rest of generated code (same as above)
51 In order to use `YoSQL` together with [Maven](https://maven.apache.org/), take a look at the tooling [documentation for Maven](/tooling/maven/).
53 {{< maven/persistence/jdbc/utilityPackageName >}}
57 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/).
62 id("wtf.metio.yosql") version "2021.4.21"
67 utilityPackageName.set("your.own.domain.util")
75 id "wtf.metio.yosql" version "2021.4.21"
80 utilityPackageName = "your.own.domain.util"
87 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/).
91 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
94 $ yosql --jdbc-utility-package-name=your.own.domain.util
97 The shorter form is available as well:
100 $ yosql --utility-package-name=your.own.domain.util