practicemaster
Farming practice catalogue (e.g. AP-GOV-KAP-A_GRADE) with display order.
Table factsheetagri_db
- Written by
- Legacy setup (
PracticeMasterDTO) Repo.insertPracticeMaster(DataSetup,DataUtil,IePortfolioRepositoryImpl);deletePracticeMasterclears first
- Legacy setup (
- Read by
- Portfolio and compact block practice pickers (
loadAllPracticeMastersby sequence) getPracticeNameByCodeAndLanguage(IEPortfolioMapper)getPracticeMastersByName
- Portfolio and compact block practice pickers (
- Filled from
POST api/setupdata/v2 (PracticeMasterDTO)GET /gateway/portfolio-service/api/v1/practices/active- Sync
- Has appId/opId/syncStatus from BaseEntity, but rows are download-only: syncStatus stays SYNC_DONE and opId is unused.
- Source
- data/src/main/java/org/mindtree/app/agricultor/data/entity/PracticeMaster.kt
Columns
| Column | Type | Null | Key | Meaning |
|---|---|---|---|---|
practiceCode | TEXT | Yes | Practice code, e.g. AP-GOV-KAP-A_GRADE. Matches PLI practiceMasterCodes. | |
id | INTEGER | Yes | Index | Server id. Null or 0 until the row is synced. Index: unique. |
uuid | TEXT | Yes | Stable business UUID, also sent to the server. | |
sequence | INTEGER | Yes | Display order. | |
appId | TEXT | No | PK | Client-side UUID. Defaults to a random UUID when the object is built, including when server JSON is parsed. |
opId | TEXT | Yes | Id of the last queued operation in the library queue (SYNC_QUEUE_DB). | |
syncStatus | TEXT | No | SYNC_NOT_INITIALIZED | IN_SYNC_QUEUE | SYNC_DONE (default). |