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

duplicate persistent field names in hierarchy #599

Open
gavinking opened this issue Mar 19, 2024 · 0 comments
Open

duplicate persistent field names in hierarchy #599

gavinking opened this issue Mar 19, 2024 · 0 comments

Comments

@gavinking
Copy link
Contributor

gavinking commented Mar 19, 2024

I just noticed that JPA does not say what happens in the following circumstance:

@Entity class Super { @Id long id; String name; }
@Entity class Sub extends Super { String name; }

Nor in this case:

@Entity class Super { @Id long id; @Column("super_name") String name; }
@Entity class Sub extends Super { @Column("sub_name") String name; }

I would say that these are disallowed, or at least "not required/portable" and strongly discouraged. But we don't actually say that.

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

No branches or pull requests

1 participant