I am trying to re-create my project in Jmix Flow. I have a project running in Cuba-platform.
-
As a first step, I have migrated it to Jmix (non-flow). Then replaced the $ sign by _ in entity definiation, sql etc.
-
Then I have created a new project in Jmix (Flow). In this empty project, I copied first all the entities from my jmix project
-
When I am creating any JPA Entity in the entity is created without a Table Name annotation.
It is working through.
@JmixEntity
@Entity(name = "tst_Product")
public class Product extends StandardTenantEntity {
@InstanceName
@Column(name = "NAME")
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
My first question is, If I keep it like that (Entity without a table name)
But my CUBA project converted into JMIX still has the Table name annotation as follows
@JmixEntity
@Table(name = "TST_PRODUCT")
@Entity(name = "tst_Product")
public class Product extends StandardTenantEntity {
@InstanceName
@Column(name = "NAME")
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
When i try to generate the changelog, get the following error message and it goes away if I remove the line ```
Table(name = "TST_PRODUCT")
Do I have to remove the table name annotation from my project converted into Jmix?