We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hibernate allows support for inheritance making it possible to things like this:
@Inheritance(strategy=InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name="content_type", discriminatorType=DiscriminatorType.STRING) @Table("site_content") public class SiteContent { @Id @Generated public uint id; @Column("title") @NotNull public string title; @Column("content") @NotNull public string content; // LONGTEXT } @Entity @DiscriminatorValue("wikipage") public class WikiPage : SiteContent {} @Entity @DiscriminatorValue("blogpost") public class BlogPost : SiteContent {}
More information on @Inheritance and the related annotations can be found here.
@Inheritance
The text was updated successfully, but these errors were encountered:
Merge pull request buggins#41 from llucenic/patch-1
285eca5
Fixed referenced code (missing imports)
buggins
No branches or pull requests
Hibernate allows support for inheritance making it possible to things like this:
More information on
@Inheritance
and the related annotations can be found here.The text was updated successfully, but these errors were encountered: