1. Protocol Buffers
  2. Protocol Buffers Entity Definition

Protocol

  1. Column
  2. Table
    1. UniqueConstraint
    2. Index
  3. wire

Configuration

Customization

Since Milestone of 2024-05-10

Project module {modile}-proto src/resources/hope-wire.json define:

{
  "persistence": {
    "identifyType": "LONG",
    "tenantType": "LONG",
    "format": "CAMEL",
    "upper": "UPPER"
  }
}

Format:

  1. DEFAULT: as old framework, convert to SNAKE style
  2. CAMEL: myVariableName
  3. SNAKE: my_variable_name

Upper:

  1. DEFAULT:as old framework, convert to UPPER style
  2. UPPER: name -> NAME
  3. LOWER: NAME -> name
  4. CAPITALIZE: userName -> UserName
  5. Exception: if you set column name manually in the proto already, this will always be the highest priority!
  6. hope.common.persistence.plugin.NameMappingStrategy client plugin to rename the column name.

case 3, the column will always be MY_USER_NAME as manually set as: name: "MY_USER_NAME";

  string user_name = 1 [(hope.persistence.column) = {
    name: "MY_USER_NAME",
    description: "name of the account",
    nullable: FALSE,
    updatable: FALSE,
    length: {
      value: 32
    },
    type: VARCHAR
  }];

Runtime

ApiHug Spring Data Extension