mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Mark all fields as @QField
This commit is contained in:
@ -43,6 +43,7 @@ public class Item extends QRecordEntity
|
|||||||
@QField(isEditable = false, displayFormat = DisplayFormat.COMMAS)
|
@QField(isEditable = false, displayFormat = DisplayFormat.COMMAS)
|
||||||
private Integer quantity;
|
private Integer quantity;
|
||||||
|
|
||||||
|
@QField()
|
||||||
private BigDecimal price;
|
private BigDecimal price;
|
||||||
|
|
||||||
@QField(backendName = "is_featured")
|
@QField(backendName = "is_featured")
|
||||||
|
@ -23,6 +23,7 @@ package com.kingsrook.qqq.backend.core.model.data.testentities;
|
|||||||
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import com.kingsrook.qqq.backend.core.model.data.QField;
|
||||||
import com.kingsrook.qqq.backend.core.model.data.QRecordEntity;
|
import com.kingsrook.qqq.backend.core.model.data.QRecordEntity;
|
||||||
|
|
||||||
|
|
||||||
@ -31,11 +32,20 @@ import com.kingsrook.qqq.backend.core.model.data.QRecordEntity;
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public class ItemWithPrimitives extends QRecordEntity
|
public class ItemWithPrimitives extends QRecordEntity
|
||||||
{
|
{
|
||||||
private String sku;
|
@QField()
|
||||||
private String description;
|
private String sku;
|
||||||
private int quantity;
|
|
||||||
|
@QField()
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
@QField()
|
||||||
|
private int quantity;
|
||||||
|
|
||||||
|
@QField()
|
||||||
private BigDecimal price;
|
private BigDecimal price;
|
||||||
private boolean featured;
|
|
||||||
|
@QField()
|
||||||
|
private boolean featured;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user