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

Javers' annotations should have priority over JPA annotations #539

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

Javers' annotations should have priority over JPA annotations #539

bartoszwalacik opened this issue May 2, 2017 · 1 comment
Labels

Comments

@bartoszwalacik
Copy link
Member

@bartoszwalacik 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
Copy link
Member Author

@bartoszwalacik 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
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant