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:
Tomas Langer
2020-06-20 00:14:23 +02:00
committed by GitHub
parent 05e89c565a
commit 093ec0d30d
10 changed files with 333 additions and 139 deletions

View File

@@ -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;

View File

@@ -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();

View File

@@ -1,9 +0,0 @@
[{
"name" : "io.helidon.examples.dbclient.pokemons.Pokemon",
"allDeclaredConstructors" : true,
"allPublicConstructors" : true,
"allDeclaredMethods" : true,
"allPublicMethods" : true,
"allDeclaredFields" : true,
"allPublicFields" : true
}]