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

Schema generator doesn't differentiate between package names for same name classes #790

Closed
tonisostrat opened this issue Jun 12, 2015 · 1 comment

Comments

@tonisostrat
Copy link

For two different entities with inner embedded classes like so...

@Entity
public class Foo {

    @Embedded
    private Gob gob;

    @Embeddable
    public class Gob {

        private String value;

        private LocalDate from;
    }
}

@Entity
public class Bar {

    @Embedded
    private Gob gob;

    @Embeddable
    public class Gob {

        private String first;

        private Boolean active;
    }
}

... the generator does not see them as different classes and therefore generates a wrong schema:

Foo {
    gob (Gob, optional)
}
Gob {
    first (string, optional),
    active (boolean, optional)
}

&

Bar {
    gob (Gob, optional)
}
Gob {
    first (string, optional),
    active (boolean, optional)
}

Am I missing some sort of annotation/configuration line or is this a bug?

@dilipkrish
Copy link
Member

Closing as its a duplicate of #182

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

No branches or pull requests

2 participants