btc-ag / service-idl

Xtext-based Service IDL (Interface Definition Language) and Code Generators for Protobuf, C++, Java and .NET
Eclipse Public License 2.0
8 stars 8 forks source link

Add support for control of ODB-based project generation #244

Closed huttenlocher closed 5 years ago

huttenlocher commented 5 years ago

After implementation of issue #175 there is a need to control generation of ODB-based projects in a flexible way. Currently, the generation is based on a freely chosen heuristic: as soon as a struct contains a member with type "uuid" and name "ID", the ODB-based project "ExternalDBImpl" will be generated. This may be not obvious and not desired by the IDL designer. So a control flag e.g. similar to "-projectSet api/client/server/full-with-skeleton..." must be introduced. By default, the behavior must be "as-is" to preserve integration tests from being broken (= no ODB); by specifying the flag, ODB generation will be triggered according to the previous logic.

sigiesec commented 5 years ago

This must be done as part of #175, since otherwise an incompatible change in behaviour would be introduced.