Hello,
In my project, I have 2 additional MySQL datastore “Publisher” and “Account”. Each datastore has couple of columns.
ex:- Publisher has publisher_site and Account has account
I have posted a similar question regarding joining the “publisher_site” & “account” tables in one screen. For this approach I am using valueCollectionDatasource as suggested here:
Please refer to this question: [url=]https://www.cuba-platform.com/discuss/t/addingdispalying-column-from-another-entity[/url]
Further, I am getting an error while compiling JPQL query with join statement. The JPA fail to locate the entities when compiling the query. I have found out that the entity classes were missing in the persistence.xml file. So, I added the entity tables which I want to join but then studio generated duplicate data model tables.
Ex:- two publisher_site tables, one refers to the additional datastore and the other to the main datastore.
I think the reason why the tables were not shown in the persistence file is because it comes from the additional datastore.
I have tried the similar approach on a sample project ‘orderManagement’ but still got the same compiling exception. I have a feeling that I’m doing something wrong.
It would be really helpful if CUBA team can provide me a running example for the similar approach.
Last question: Is it possible to add additional views which are created from MySQLWorkbench in studio?
Thanking in advance.