Question 1:
In reference guide 5.5:
"..you can use "extends" ..... use of this feature will make the ordering of the mapping documents important "
I am using the schema export tool to generate database schema and want to have classes in a hierachy in separate mapping documents and therefore "extends" is used.
How do I specify the ordering of mapping documents if class A extends class Z?
(because when it comes to mapping docuement for A, a message "cannot extends an upmapped class", as A will be mapped before Z in the default mapping sequence)
Question 2:
class D, E, F extends class W.
class X has a collection of Ws.
load X;
get collection of Ws;
for each W
HERE : how do i know whether W is instance of D or E or F? as
w.getClass() gives something ike "ackage.W$$EnhancerByCGLIB$$da5aeea5"
and
(W instanceof D), (W instanceof E), (W instanceof F) all result in false
Thankyou in advacnce for answers/ideas.
/Kwan
|