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

  • SEARCH
  • Home
  • 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 4240646
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T03:11:35+00:00 2026-05-21T03:11:35+00:00

I have a subclass with a discriminator, can i have another discriminator in a

  • 0

I have a subclass with a discriminator, can i have another discriminator in a subclass
I’ll try to explain
One discriminator is in Person Table may be type and i have two subclasses Student and teacher, in a student subclass i have different subclasses of student based on a different column in student record.
Now i am using joined subclass with discriminator but i’m not be able to discriminate in a subclass

!------ Person
!-------------Student 
!--------------------Student type A
!--------------------Student type B
!-------------Teacher   
  • 1 1 Answer
  • 1 View
  • 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-05-21T03:11:36+00:00Added an answer on May 21, 2026 at 3:11 am

    As in the documentation:
    “Hibernate does not support mixing <subclass>, and <joined-subclass> and <union-subclass> mappings under the same root <class> element” this I think is a troubkle for you, maybe you can break the joined subclass and use a instaead ?
    BTW nh is growing faster, sometimes faster than the doc, but I think this still apply to NH 3.1.0

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

Sidebar

Related Questions

I have a table with one field that can point to a foreign key
I have a subclass of UITableViewController. I have code that can add/remove a UISearchBar
I have a situation where I have a Common.Domain.Person and Specific.Domain.Person . First one
I'm trying to map inheritance with discriminator, but subclasses don't have discriminator value. How
I have subclass of UIViewController called FullScreenViewController which has a property of type ImageScrollView
I have two one-to-one relations here between a class called MailAccount and the classes
I have a subclass of UITabBarController which i am using so that i can
I have a subclass of javax.swing.table.AbstractTableModel that defines table column headers like this: protected
I have subclass of UINavigationBar . @interface MyNavigationBar : UINavigationBar Made some changes and
HI All. I have subclass of UIScrollView. IN this class I have added some

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.