Core @Erupt
Usage
Add the @Erupt annotation to a class definition:
java
@Erupt(
name = "Erupt", // feature name
desc = "Erupt Engine", // description
orderBy = "id desc", // sort expression
.....
)
public class EruptTest extends BaseModel {
// TODO
}Annotation Attributes
| Attribute | Description |
|---|---|
primaryKeyCol | Primary key column name, defaults to id |
name | Feature name |
desc | Feature description |
layout | Page layout configuration, see @Layout |
authVerify | Whether access requires authorization |
orderBy | Sort rule, follows HQL ORDER BY syntax, see @OrderBy |
power | Controls add/delete/edit/query/import/export capabilities, see @Power |
filter | Data display filter conditions, follows HQL WHERE syntax, see @Filter |
tree | Tree node configuration, see @Tree |
linkTree | Left-tree right-table layout, see @LinkTree |
drills | Custom drill-down associated views, see @Drill |
rowOperation | Custom action buttons, see @RowOperation |
dataProxy | Service-layer logic extension (extending existing logic), see DataProxy |
dataProxyParams | Custom parameters, accessible inside dataProxy via DataProxyContext.get() |
visRawTable | Whether to keep the default table view, defaults to true; set to false to show only the views defined in vis |
vis | Additional view configurations (card, Gantt, kanban, etc.), see @Vis Multi-View |
param | Custom parameters |
Annotation Definition
java
public @interface Erupt {
String primaryKeyCol() default "id"; // primary key column name, defaults to id
String name(); // feature name
String desc() default ""; // feature description
boolean authVerify() default true; // whether access requires authorization
Power power() default @Power; // controls add/delete/edit/query/import/export
RowOperation[] rowOperation() default {}; // custom action buttons
Drill[] drills() default {}; // custom drill-down associated views
Filter[] filter() default {}; // data filtering
String orderBy() default ""; // sort rule
Class<? extends DataProxy>[] dataProxy() default {}; // proxy callback interface methods
String[] dataProxyParams() default {}; // accessible inside dataProxy via DataProxyContext.get()
Tree tree() default @Tree; // tree node configuration
LinkTree linkTree() default @LinkTree(field = ""); // left-tree right-table configuration
Layout layout() default @Layout; // page layout configuration
KV[] param() default {}; // custom parameters
}