Skip to content

enums are persisted as json strings (extra quotes in db) #67

@jonenst

Description

@jonenst

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

and migrate everything ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions