cuba-cli
cuba-cli copied to clipboard
Ability to add attributes to entity using simplified attribute definition
I'm always frustrated when I created entity using CLI and cannot add attributes right now from a terminal.
It would be great if CLI after creating entity ask me if I want to add attributes. After that I will be able to enter attribute types (using very-short definition) and attribute name. Like:
> Do you want to add attributes to Customer entity (y/n):
y
> Enter attribute definitions using type + attribute name:
D date, S title, L number, B active, T time, sec$User user, RoleType roleType (Enter)
> Added attributes:
Date date;
String title;
Long number;
Boolean active;
java.sql.Time time;
User user;
RoleType roleType;
Studio must add new attributes to Java class, generate get/set methods, add attributes to create-db.sql script