@Entity public class MetaJsonModel extends AuditableModel
Constructor and Description |
---|
MetaJsonModel() |
MetaJsonModel(String name,
String nameField) |
getCreatedBy, getCreatedOn, getUpdatedBy, getUpdatedOn
getArchived, getVersion, isSelected, setArchived, setSelected, setVersion
public String getName()
public void setName(String name)
public String getTitle()
public void setTitle(String title)
public String getOnNew()
public void setOnNew(String onNew)
public String getOnSave()
public void setOnSave(String onSave)
public String getNameField()
public void setNameField(String nameField)
public String getFormWidth()
public void setFormWidth(String formWidth)
public String getOrderBy()
public void setOrderBy(String orderBy)
public MetaMenu getMenu()
public void setMenu(MetaMenu menu)
public MetaMenu getMenuParent()
public void setMenuParent(MetaMenu menuParent)
public String getMenuIcon()
public void setMenuIcon(String menuIcon)
public String getMenuBackground()
public void setMenuBackground(String menuBackground)
public Integer getMenuOrder()
public void setMenuOrder(Integer menuOrder)
public String getMenuTitle()
public void setMenuTitle(String menuTitle)
public Boolean getMenuTop()
public void setMenuTop(Boolean menuTop)
public MetaAction getAction()
public void setAction(MetaAction action)
public MetaView getGridView()
public void setGridView(MetaView gridView)
public MetaView getFormView()
public void setFormView(MetaView formView)
public List<MetaJsonField> getFields()
public void setFields(List<MetaJsonField> fields)
public void addField(MetaJsonField item)
MetaJsonField
item to the fields
.
It sets item.jsonModel = this
to ensure the proper relationship.
item
- the item to addpublic void removeField(MetaJsonField item)
MetaJsonField
item from the fields
.item
- the item to removepublic void clearFields()
fields
collection.
If you have to query MetaJsonField
records in same transaction, make sure to call
EntityManager.flush()
to avoid unexpected errors.
public void addRole(Role item)
Role
item to the roles
.item
- the item to addpublic void removeRole(Role item)
Role
item from the roles
.item
- the item to removepublic void clearRoles()
roles
collection.