Describe the current behavior
many enums in the networkstore are persisted in the database as a string with quotes
generator.energysource "SOLAR"
hvdcline.convertermode "SIDE_1_INVERTER_SIDE_2_RECTIFIER"
load.loadtype "UNDEFINED"
staticvarcompensator.regulationmode "VOLTAGE"
substation.country "FR"
switch.kind "BREAKER"
twowindingstransformer.phasetapchangerregulationmode "FIXED_TAP"
twowindingstransformer.ratiotapchangerregulationmode "VOLTAGE"
voltagelevel.topologykind "NODE_BREAKER"
Describe the expected behavior
no quotes
Describe the motivation
simplify
Extra Information
should add ! instanceof Enum.class in isCustomTypeJsonified pour les enums
|
Integer.class.equals(clazz) || Long.class.equals(clazz) |
and migrate everything ?
Describe the current behavior
many enums in the networkstore are persisted in the database as a string with quotes
generator.energysource "SOLAR"
hvdcline.convertermode "SIDE_1_INVERTER_SIDE_2_RECTIFIER"
load.loadtype "UNDEFINED"
staticvarcompensator.regulationmode "VOLTAGE"
substation.country "FR"
switch.kind "BREAKER"
twowindingstransformer.phasetapchangerregulationmode "FIXED_TAP"
twowindingstransformer.ratiotapchangerregulationmode "VOLTAGE"
voltagelevel.topologykind "NODE_BREAKER"
Describe the expected behavior
no quotes
Describe the motivation
simplify
Extra Information
should add ! instanceof Enum.class in isCustomTypeJsonified pour les enums
powsybl-network-store-server/network-store-server/src/main/java/com/powsybl/network/store/server/Utils.java
Line 36 in 0bcc17f