mirror of
https://github.com/jlengrand/helidon.git
synced 2026-03-10 08:21:17 +00:00
Upgrade svm, annotation for reflection (#2070)
* Upgrade svm libraries. Annotation for reflection in native image. Signed-off-by: Tomas Langer <tomas.langer@oracle.com> * Missed required class. Signed-off-by: Tomas Langer <tomas.langer@oracle.com> Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
This commit is contained in:
@@ -15,11 +15,13 @@
|
||||
*/
|
||||
package io.helidon.examples.dbclient.pokemons;
|
||||
|
||||
import io.helidon.common.Reflected;
|
||||
|
||||
/**
|
||||
* POJO representing Pokemon.
|
||||
*/
|
||||
@Reflected
|
||||
public class Pokemon {
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
private int idType;
|
||||
|
||||
@@ -36,7 +36,7 @@ import io.helidon.webserver.WebServer;
|
||||
*/
|
||||
public final class PokemonMain {
|
||||
|
||||
/** MongoDB configuration. Default configuration file {@code appliaction.yaml} contains MySQL/JDBC configuration. */
|
||||
/** MongoDB configuration. Default configuration file {@code appliaction.yaml} contains JDBC configuration. */
|
||||
private static final String MONGO_CFG = "mongo.yaml";
|
||||
|
||||
/** Whether MongoDB support is selected. */
|
||||
@@ -63,7 +63,7 @@ public final class PokemonMain {
|
||||
System.out.println("MongoDB database selected");
|
||||
mongo = true;
|
||||
} else {
|
||||
System.out.println("MySQL/JDBC database selected");
|
||||
System.out.println("JDBC database selected");
|
||||
mongo = false;
|
||||
}
|
||||
startServer();
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
[{
|
||||
"name" : "io.helidon.examples.dbclient.pokemons.Pokemon",
|
||||
"allDeclaredConstructors" : true,
|
||||
"allPublicConstructors" : true,
|
||||
"allDeclaredMethods" : true,
|
||||
"allPublicMethods" : true,
|
||||
"allDeclaredFields" : true,
|
||||
"allPublicFields" : true
|
||||
}]
|
||||
Reference in New Issue
Block a user