File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single Table Inheretance - Multiple Values

 
Rahul Juneja
Ranch Hand
Posts: 425
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks,

I am trying to create a discriminator in Hibernate Mapping and i want multiple filtered values in the subclass.

As an example i have a persons class and it has students(S), Employees(E), Players(P) with discriminator column as Type and values as S,E,P.
I want to have a subclass which has Student(S) and Players(P). Is there any way i can do this with discriminator.

Any pointers is appreciated.

Thanks,
Rahul
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link may be helpful to you

Inheritance Mapping

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic