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

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

Open
ferrarimarco opened this issue May 17, 2017 · 2 comments

Comments

@ferrarimarco
Copy link

ferrarimarco commented May 17, 2017

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
Copy link

JamesBarnes88 commented Jul 17, 2019

Having this issue now as well. any resolution?

@filipelautert
Copy link
Collaborator

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

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

No branches or pull requests

4 participants