liquibase / liquibase-hibernate

Liquibase Hibernate Integration
Apache License 2.0
271 stars 157 forks source link

Does liquibase-hibernate support InheritanceType.JOINED and InheritanceType.TABLE_PER_CLASS modes? #151

Open ferrarimarco opened 7 years ago

ferrarimarco commented 7 years ago

If I try to generate a diff with the following classes:

@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class ClassA {
    private String country;
// Getters and setters
}

@Entity
public class ClassB extends ClassA {
    private String city;
// Getters and setters
}

And run the liquibase-maven-plugin with the goal liquibase:diff I get the following exception:

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.3:diff (default-cli) on project database-uploader: Error setting up or running Liquibase: org.hibernate.MappingException: Unable to find column with logical name: social_security_number in org.hibernate.mapping.DenormalizedTable(ClassB) and its related supertables and secondary tables -> [Help 1]

The same with @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)

┆Issue is synchronized with this Jira Bug by Unito

JamesBarnes88 commented 5 years ago

Having this issue now as well. any resolution?

filipelautert commented 6 months ago

As far as I can tell it's not supported.