Date: 2005-02-02T19:49:09
   Editor: MichelleCaisse
   Wiki: Apache JDO Wiki
   Page: MetadataMappings
   URL: http://wiki.apache.org/jdo/MetadataMappings

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -16,3 +16,11 @@
 
 '''Question:''' <inheritance> takes a <join> element according to the dtd.  Is 
this used to specify the primary key in the Joined Tables pattern?  If so, how 
is it used, syntactically?
 
+When the inheritance pattern is One Table, a <discriminator> element must be 
used in the metadata to specify the discriminator strategy and column, used to 
distinguish the classes that may be represented in the table.
+||Nested under <inheritance>||Nested under subclass <class> element||
+|| <discriminator value="value-map" column="column_name">|| <discriminator 
value="pick_a_value">||
+|| <discriminator value="class-name" column="column_name">||n/a||
+
+'''Question:''' What about index element or indexed attribute of 
<discriminator>? These are in the dtd, but not mentioned in 
Chapter18TestCoverageNotes.
+
+So combining inheritance pattern with discriminator strategy, there are four 
cases that must be tested.

Reply via email to