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
Labels

Comments

@bartoszwalacik
Copy link
Member

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

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
Development

No branches or pull requests

1 participant