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

Javers' annotations should have priority over JPA annotations #539

Closed
bartoszwalacik opened this Issue May 2, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@bartoszwalacik
Member

bartoszwalacik commented May 2, 2017

test case:

    @javax.persistence.Entity
    @org.javers.core.metamodel.annotation.ValueObject
    class AmbiguousValueObjectType {
        @Id int id
    }

    @javax.persistence.Embeddable
    @org.javers.core.metamodel.annotation.Entity
    class AmbiguousEntityType {
        @Id int id
    }

    def "should use javers type annotations first, when ambiguous type mapping"(){
        expect:
        typeFactory.inferFromAnnotations(AmbiguousEntityType) instanceof EntityType
        typeFactory.inferFromAnnotations(AmbiguousValueObjectType) instanceof ValueObjectType
    }

@bartoszwalacik bartoszwalacik added the fixed label May 6, 2017

@bartoszwalacik

This comment has been minimized.

Member

bartoszwalacik commented May 6, 2017

released in 3.1.1

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