Repository: jOOQ/jOOQ (language: java)

Issue:
Generated TableImpl::getSchema override should be annotated Nullable
### Expected behavior

When adding annotations with:

```kotlin
            withNullableAnnotation(true)
            withNullableAnnotationType("org.jetbrains.annotations.Nullable")
            withNonnullAnnotation(true)
            withNonnullAnnotationType("org.jetbrains.annotations.NotNull")
```

I should still be able to use jOOQ.





### Actual behavior

But it fails with: `TaskTbl.getSchema must not return null`

Looking at the code the bug seems obvious:

```java
    @Override
    @NotNull
    public Schema getSchema() {
        return aliased() ? null : DefaultSchema.DEFAULT_SCHEMA;
    }
```

The `@NotNull` annotation on `getSchema()` should be replaced with `@Nullable` given `return null` is possible.

### Steps to reproduce the problem

Just add these:

```kotlin
            withNullableAnnotation(true)
            withNullableAnnotationType("org.jetbrains.annotations.Nullable")
            withNonnullAnnotation(true)
            withNonnullAnnotationType("org.jetbrains.annotations.NotNull")
```

to any jOOQ project and it will fail on the first query.

### jOOQ Version

3.17.4

### Database product and version

MySQL8

### Java Version

17

### OS Version

Linux

### JDBC driver name and version (include name if unofficial driver)

mysql-connector-j v8.0.30


Discussion / hints:
I have tried to manually change the `@NotNull` annotation to `@Nullable`, and it fixes the problem.

Fix patch:
diff --git a/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java b/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java
index 99565c1b5a1..e205bd66612 100644
--- a/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java
+++ b/jOOQ-codegen/src/main/java/org/jooq/codegen/JavaGenerator.java
@@ -6334,7 +6334,7 @@ else if (kotlin) {
         }
         else {
             out.overrideInherit();
-            printNonnullAnnotation(out);
+            printNullableAnnotation(out);
             out.println("%s%s getSchema() {", visibilityPublic(), Schema.class);
             out.println("return aliased() ? null : %s;", schemaId);
             out.println("}");


Test patch: