• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Mapping an "interface" and "inharitance" at the same time

 
Manuel ZapataDzay
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there friends this is my very first topic

Im kinda new in hibernate, and ive been dealing with a problem for a long time

i wanna map a class that implements and interface and extends another class,

can you guys help me out with this?

this is just an example of what i want to do

public Class CashPayment extends CreditCardPayment extends Payment
{}

the thing is that i want to have diferent tables for each class, and i dont want to use a discriminant, dont ask me im just not allow to use that at work :S

ive read several post and review the 3 ways hibernate handles inheritance but i havent seen an example of what im trying to do

hope you can help me ....
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!