Hi,

last week, I already posted this question but did not get any answer. So,
I'll post a simplified version again:

* I want to map three classes A, B and C.
* B and C extend A.
* A has three fields (id, a1, a2), B and C have 20 fields.
* I want to have three tables TA, TB, TC.
* Table TA should have columns ID and TYPE.
* Table TB should have columns ID, A1, A2, B1, B2,... B20.
* Table TC should have columns ID, A1, A2, C1, C2,... C20.

(In the real world app, the columns would have real names, of course).

Until now, I have tried subclass mapping which gave me a different
scenario:
* I got only one table TA.
* Table TA had columns ID, A1, A2, B1..B20, C1..C20.

Now my question:
* How should I configure Hibernate so that three tables are used instead
of one?

Cheers...
Matthias

---

Matthias Bohlen
http://www.mbohlen.de/



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to