You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CUBA Platform version: 7.2.7
CUBA Studio plugin version: 14.0.SNAPSHOT2510-202
IntelliJ version: IntelliJ IDEA 2020.2 (Community Edition)
Frontend generator 3.1.1
@Table(name = "ADSTEST2708_MAIN_ENT")
@Entity(name = "adstest2708_MainEnt")
public class MainEnt extends StandardEntity {
private static final long serialVersionUID = 2071190532239818500L;
@Column(name = "ME_FLD")
private String meFld;
...
}
}
Create "AdditionalEntity" in the second datastore
Add a link to "MainEnt" (the entity from the first datastore)
See Studio generated the attribute which is 'SystemLevel' @SystemLevel @Column(name = "MY_MAIN_ID") private UUID myMainId;
@Table(name = "ADSTEST2708_ADDITIONAL_ENTITY")
@Entity(name = "adstest2708_AdditionalEntity")
public class AdditionalEntity extends StandardEntity {
private static final long serialVersionUID = 7284383439194045433L;
@Column(name = "AE_FLD")
private String aeFld;
@SystemLevel
@Column(name = "MY_MAIN_ID")
private UUID myMainId;
@Transient
@MetaProperty(related = "myMainId")
private MainEnt myMain;
Create Front module
See the UUID attribute definition in projectModel.json
AR: the UUID @systemlevel field is presented
When a new instance is created and a linked entity is selected the UUID field is empty - it is not auto-filled immediately only on the instance saving: It looks not so pretty
ER:
Vaadin UI (Generated by Studio) does not show this field at all neither in browser nor in the editor
The text was updated successfully, but these errors were encountered:
CUBA Platform version: 7.2.7
CUBA Studio plugin version: 14.0.SNAPSHOT2510-202
IntelliJ version: IntelliJ IDEA 2020.2 (Community Edition)
Frontend generator 3.1.1
There is an ability to link entities from different datastores in Platform, and it is also supported by Studio
See the documentation: https://doc.cuba-platform.com/manual-latest/data_store.html#cross_datastore_ref
See Studio generated the attribute which is 'SystemLevel'
@SystemLevel @Column(name = "MY_MAIN_ID") private UUID myMainId;
See the UUID attribute definition in
projectModel.json
Generate CRUD-Components for both the entities
Start the application
Open Additional entity editor
AR: the UUID @systemlevel field is presented
When a new instance is created and a linked entity is selected the UUID field is empty - it is not auto-filled immediately only on the instance saving: It looks not so pretty
ER:
Vaadin UI (Generated by Studio) does not show this field at all neither in browser nor in the editor
The text was updated successfully, but these errors were encountered: