Nigel Barrett wrote:

I am trying to use the OJB XDoclet to generate a mapping for a test object
hierarchy and am now not sure if I am approaching this correctly.
I have put the code for the various classes at the end iof this - I have
chopped out all but the data members for clarity.
What I want is to be able to store PFYs or BOSSes in the EMPLOYEE Table and
to be able to get OJB to query either Boss, Pfy or BaseEmployee for me if I
ask it to, although the BaseEmployee will prob not really be needed but I'd
like to know I could do it.
When I run the OJB XDoclet on this the repository seems to be correct (I
haven't tried it but it looks like it would work) but the db schema XML has
a table for BaseEmployee, PFY and BOSS. I was hoping that I would get one
table (EMPLOYEE) which had the superset of all fields for all objects that
had to be stored in it.
It would be a great help if someone could clarify if I am on the right
track, whether OJBs XDoclet can do what I want or if I should go back to raw
JDBC :-)



Could you post the db-schema ? Which version of OJB and the xdoclet module are you using ?
Btw, there are a couple of '@' missing, because of your chopping out ?


Tom


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to