Table name Annotation after migration

I am trying to re-create my project in Jmix Flow. I have a project running in Cuba-platform.

  1. As a first step, I have migrated it to Jmix (non-flow). Then replaced the $ sign by _ in entity definiation, sql etc.

  2. Then I have created a new project in Jmix (Flow). In this empty project, I copied first all the entities from my jmix project

  3. 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")

image

Do I have to remove the table name annotation from my project converted into Jmix?

You should keep the @Table annotation.
Check that the StandardTenantEntity class exists in your project or in a dependency.

Thank you Konstantin.