Andrus Adamchik created CAY-3004:
------------------------------------
Summary: Modeler: Rework DbEntity PK generation UI to match the
XML model
Key: CAY-3004
URL: https://issues.apache.org/jira/browse/CAY-3004
Project: Cayenne
Issue Type: Improvement
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Fix For: 5.0-M4
The Modeler currently presents PK generation as a single 3-way "PK Strategy"
combo box
(Cayenne-Generated (Default) / Database-Generated / Custom Sequence) on the
DbEntity tab. That grouping is an invention of the UI and does not match the
map XML, where the two concepts are independent and live on different elements:
- db-entity/db-key-generator — an optional child element
(DbEntity.primaryKeyGenerator,
a DbKeyGenerator with type/name/cache size). Absent = default. Only flavor
is a custom sequence
- db-attribute/@isGenerated — a boolean flag on one column
(DbAttribute.generated),
i.e. an auto-increment / identity column.
Let's build the UI around the actual structure - "Auto-Increment" should become
a DbAttribute editor column (only available to PKs), and DbEntity-level
selector only available to configure custom sequences.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)