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

HHH-7135 Tests for derived identity with joined inheritance #9610

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

beikov
Copy link
Member

@beikov beikov commented Jan 13, 2025


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-7135


@Entity(name = "AThing")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

AThing should be made static, since the enclosing instance is not used.
}

@Entity(name = "ThingHolder")
public class ThingHolder {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

ThingHolder should be made static, since the enclosing instance is not used.
}

@Entity(name = "Thing1")
public class Thing1 extends AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

Thing1 should be made static, since the enclosing instance is not used.
}

@Entity(name = "Thing2")
public class Thing2 extends AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

Thing2 should be made static, since the enclosing instance is not used.

@Entity(name = "AThing")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

AThing should be made static, since the enclosing instance is not used.
}

@Entity(name = "Thing2")
public class Thing2 extends AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

Thing2 should be made static, since the enclosing instance is not used.

@Entity(name = "AThing")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

AThing should be made static, since the enclosing instance is not used.
}

@Entity(name = "ThingHolder")
public class ThingHolder {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

ThingHolder should be made static, since the enclosing instance is not used.
}

@Entity(name = "Thing1")
public class Thing1 extends AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

Thing1 should be made static, since the enclosing instance is not used.
}

@Entity(name = "Thing2")
public class Thing2 extends AThing {

Check notice

Code scanning / CodeQL

Inner class could be static Note test

Thing2 should be made static, since the enclosing instance is not used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant