Skip to content

@IdMapping for custom id class? Plus: equals and hashCode problem? #1382

Answered by famod
famod asked this question in Q&A
Discussion options

You must be logged in to vote

@beikov WDYT about this short-term remedy?

public class MyEntityViewConfigurationProvider extends EntityViewConfigurationProviderImpl {
    @Override
    public EntityViewConfiguration createConfiguration() {
        final var cfg = super.createConfiguration();
        cfg.setProperty(ConfigurationProperties.MANAGED_TYPE_VALIDATION_DISABLED, "true");
        return cfg;
    }
}

Plus service loader file.

Seems to work in a QuarkusTest (have yet to check the other setups).

Replies: 4 comments 19 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@famod
Comment options

Comment options

You must be logged in to vote
13 replies
@famod
Comment options

@beikov
Comment options

@famod
Comment options

@beikov
Comment options

@famod
Comment options

Comment options

You must be logged in to vote
5 replies
@beikov
Comment options

@famod
Comment options

@beikov
Comment options

@beikov
Comment options

@famod
Comment options

Answer selected by beikov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants