Milestone/Milestone-20240510
Milestone
Upgrade notes for the 0.4.0 plugin and 0.9.8+ SDK changes that prepared the 1.0.0 release line.
This milestone introduced compatibility changes. Review the migration steps before upgrading older projects.
This release prepared the later 1.0.0-RELEASE line and introduced several breaking naming and generation updates.
The most important one was the move from cn_message to message2 for second-language descriptions.
cn_message to message2The old constant option:
string cn_message = 3 [deprecated = true];
was replaced by:
string message2 = 4;
The intent is to make the second-language field generic instead of hard-coding it to Chinese.
0.4.0+.0.9.8-RELEASE or later.{PROJECT}/gradle/libs.versions.toml:apihug = "0.9.8-RELEASE"
descriptionZhCN with description2 or setDescription2.cn_message with message2 in proto files.This milestone also introduced more explicit entity column naming controls in hope-wire.json:
{
"persistence": {
"identifyType": "LONG",
"tenantType": "LONG",
"format": "CAMEL",
"upper": "UPPER"
}
}
Example column option syntax should use the current scalar style:
string user_name = 1 [(hope.persistence.column) = {
name: "MY_USER_NAME",
description: "name of the account",
nullable: false,
updatable: false,
length: 32,
type: VARCHAR
}];
The plugin template also introduced a proto-only build switch for faster recovery when a proto update temporarily breaks the full project.
Example invocation:
gradlew clean build -x test -x wireTest -DonlyProto=true
After this migration, older projects align with the naming and build conventions that later releases assume by default.