forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
quarkusio#34443 Quarkus 3 native image fail to start with NoSuchMetho…
…d Exception
- Loading branch information
Showing
5 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ration-tests/jpa/src/main/java/io/quarkus/it/jpa/generatedvalue/CustomTenantResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.quarkus.it.jpa.generatedvalue; | ||
|
||
import jakarta.enterprise.context.RequestScoped; | ||
|
||
import io.quarkus.hibernate.orm.PersistenceUnitExtension; | ||
import io.quarkus.hibernate.orm.runtime.tenant.TenantResolver; | ||
|
||
@PersistenceUnitExtension | ||
@RequestScoped | ||
public class CustomTenantResolver implements TenantResolver { | ||
|
||
private static final String DEFAULT_TENANT = "default"; | ||
|
||
@Override | ||
public String getDefaultTenantId() { | ||
return DEFAULT_TENANT; | ||
} | ||
|
||
@Override | ||
public String resolveTenantId() { | ||
return DEFAULT_TENANT; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters