Добрый день!
Jmix version: 1.5.4
Jmix Studio plugin version: 2.1.0-232
IntelliJ version: IntelliJ IDEA 2023.2.1 (Community Edition)
СУБД: PostgreSQL
Сущность определена так:
@Entity(name = "FixedAsset")
public class FixedAsset {
@Column(name = "ID", nullable = false, columnDefinition = "bigint not null DEFAULT nextval('s_fixed_asset')")
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
...
Liquibase при каждом старте генерирует изменение:
<changeSet id="1">
<addDefaultValue columnDataType="bigint"
columnName="ID"
defaultValueComputed="nextval('s_fixed_asset')"
tableName="FIXED_ASSET"/>
</changeSet>