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
[V4.25.0] Diff changelog command fails without error when indexed column not existing #5346
Comments
Hi @amazing4u, thank you for reporting this issue. I have been able to replicate it and I agree that the error message should contain more information. I'll be forwarding this to the development team so they can evaluate how to move forward. Thank you, |
Not sure if this is related but I ran into a similar problem here when trying to create a many to many relationship between two tables: liquibase/liquibase-gradle-plugin#143 |
Hi @amazing4u and @samuelm00. The error message problem is fixed with #5828 - could you use the artifacts from that PR to show what the error is? Let us know if you need further help after that. Thank you, |
@tati-qalified This issues is probably related as well: class A {
@Id
private Long id;
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(
name = "a",
joinColumns = @JoinColumn(name = "b_id"),
inverseJoinColumns = @JoinColumn(name = "a_id"))
private Set<B> bs;
}
class B {
@Id
private Long id;
@ManyToMany(mappedBy = A_.BS, fetch = FetchType.LAZY)
private Set<A> as;
} If the But when you run the command with |
@samuelm00 a fix to this was merged to master last week. |
@tati-qalified How can we try the latest master when there is no new release yet? Is there some snapshot version we can use? |
@amazing4u
|
Sorry, i was not able to use/install the provided snapshot version. Tried with maven, but the snapshot versions are not in maven central repository. Also tried to install the library manually using mvn install:install-file on the liquibase-core.jar but this also failed ;/ |
Search first
Description
Hi,
i want to inform you about a bug, which i found in version 4.25.0 (older versions also affected) and hibernate6:
If you have a Entity and index a column which does not exist (or you typed it wrong) the diff changelog fails without error.
The diff will not be created, but you don't know why. Please throw a exception with a meaningful error message for this error, so the users do not have to search for the problem as long as i had to :slight_smile:
Steps To Reproduce
You can reproduce it with this example
Expected/Desired Behavior
Generation fails with a meaningful error message
Liquibase Version
4.25
Database Vendor & Version
PostgreSQL 15
Liquibase Integration
maven
Liquibase Extensions
liquibase-maven-plugin
OS and/or Infrastructure Type/Provider
Windows 11
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: