shorten title
[yosql.git] / yosql-website / content / persistence / jdbc / utilityPackageName.md
blob77d3e108b5c008e5164357039b3e93d0a87815e6
1 ---
2 title: utilityPackageName
3 date: 2019-09-27T18:51:08+02:00
4 menu:
5   main:
6     parent: JDBC
7 categories:
8   - Configuration
9 tags:
10   - utilities
11   - package
12   - name
13 ---
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:
23 ```java
24 package com.example.persistence.util;
26 public class SomeUtility {
28     // ... rest of generated code
31 ```
33 ### Option: 'your.own.domain.util'
35 Changing the `utilityPackageName` configuration option to `your.own.domain.util` generates the following code instead:
37 ```java
38 package your.own.domain.util;
40 public class SomeUtility {
42     // ... rest of generated code (same as above)
45 ```
47 ## Tooling
49 ### Maven
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 >}}
55 ### Gradle
57 In order to use `YoSQL` together with [Gradle](https://gradle.org/), take a look at the tooling [documentation for Gradle](/tooling/gradle/).
59 ```kotlin
60 plugins {
61   java
62   id("wtf.metio.yosql") version "2021.4.21"
65 yosql {
66   configGroup {
67     utilityPackageName.set("your.own.domain.util")
68   }
70 ```
72 ```groovy
73 plugins {
74   id "java"
75   id "wtf.metio.yosql" version "2021.4.21"
78 yosql {
79   configGroup {
80     utilityPackageName = "your.own.domain.util"
81   }
83 ```
85 ### Bazel
87 In order to use `YoSQL` together with [Bazel](https://bazel.build/), take a look at the tooling [documentation for Bazel](/tooling/bazel/).
89 ### CLI
91 In order to use YoSQL on the command line, take a look at the tooling [documentation for CLI](/tooling/cli/).
93 ```shell
94 $ yosql --jdbc-utility-package-name=your.own.domain.util
95 ```
97 The shorter form is available as well:
99 ```shell
100 $ yosql --utility-package-name=your.own.domain.util