Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Check is not applied to changelog when using diff #720

Open
alenkasolo opened this issue Sep 29, 2024 · 0 comments
Open

@Check is not applied to changelog when using diff #720

alenkasolo opened this issue Sep 29, 2024 · 0 comments

Comments

@alenkasolo
Copy link

I'm using Spring Boot 3 with hibernate 6.
For example if I add these code

@Check(constraints = "estimated_amount >= 0")
public class MasterExpenseEstimation extends AutoIncrementedIdWithSoftDelete {

    @NotNull
    @ManyToOne(targetEntity = Category.class, optional = false, fetch = FetchType.LAZY)
    @JoinColumn(name = "category_id", columnDefinition = "BIGINT UNSIGNED", nullable = false, unique = true)
    private Category category;

    @Min(0)
    @NotNull
    @Column(name = "estimated_amount", nullable = false)
    private Integer estimatedAmount;
}

The check constraints is not added when i run ./mvnw liquibase:diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant