Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7939177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:01:23+00:00 2026-06-03T23:01:23+00:00

The issue is this, I’m extending a generic framework and applying it to an

  • 0

The issue is this, I’m extending a generic framework and applying it to an specific proyect, the framework works with Spring and Hibernate, here I have two classes, GenericClient and SpecificClient, they are both entities, and SpecificClient inherits from GenericClient.

GenericClient is part from the framework and I can’t modify it, since this class doesn’t declares @Inheritance(strategy = InheritanceType.JOINED) the only type of inheritance type that can be used is InheritanceType.SINGLE_TABLE because this is the default value of the annotation.

Currently my code is working with @Inheritance(strategy = InheritanceType.SINGLE_TABLE) being declared in SpecificClient, even though it is not the root of the inheritance tree.

Due to version issues I have to find the way to use InheritanceType.JOINED, the good thing is that SpecificClient will always be the last class of the inheritance tree, but can be different in different projects.

  • Is there any way in that I can inject the annotation InheritanceType.JOINED in the parent class?
  • Is there any way that the parent class can be declared in such a way that according to the needs of specific projects you can use one kind of inheritance of the other?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:01:25+00:00Added an answer on June 3, 2026 at 11:01 pm

    You could use XML to define the mapping of this inheritance tree. Here’s the relevant section of the documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this issue has been touched on here but I have not found
Note: This issue appears to be limited to SQL Server 2005 SP2 I have
I have this issue with ComboBox that uses IEnumerable<Brush> as ItemsSource; the problem lies
I have looked at other solutions for this but can't find a similar issue:
Started to have an issue this afternoon with the delayed_job process, found that the
This issue only exists under IIS5.1. I have found a way of resolving the
Currently when I issue this SQL, it gets the distinct username. I have some
I have rows such as [ISSUE] This is a sample issue [WEBSITE] A bug
My issue: This code works in firefox chrome and safari but not in IE
How can I ignore the attribute error I get when I issue this command?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.