Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiYTc2NGIzZGRj...
) / Sub-task (
https://hibernate.atlassian.net/browse/HHH-16148?atlOrigin=eyJpIjoiYTc2NG...
) HHH-16148 (
https://hibernate.atlassian.net/browse/HHH-16148?atlOrigin=eyJpIjoiYTc2NG...
) Introduce Immutability (MutabilityPlan) for use with @Mutability (
https://hibernate.atlassian.net/browse/HHH-16148?atlOrigin=eyJpIjoiYTc2NG...
)
Change By: Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Because of the type parameterization on {{Mutability}} and {{ImmutableMutabilityPlan}}:
{noformat}public @interface Mutability {
Class<? extends MutabilityPlan<?>> value();
}
public class ImmutableMutabilityPlan<T> implements MutabilityPlan<T> {
...
}{noformat}
The following will give compile errors (Java generics ftw!):
{noformat}(a)Mutability(ImmutableMutabilityPlan.class){noformat}
Create a non-type-parameterized version:
{noformat}public class Immutability implements MutabilityPlan<Object> {
}{noformat}
And then this works:
{noformat}(a)Mutability(Immutability.class){noformat}
(
https://hibernate.atlassian.net/browse/HHH-16148#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16148#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:4a69e91 )