Does anyone have any suggestions of either different annotations or
modifications to the hibernate xdoclet source to get a joined subclass
to have a two column key?

I want to create xml like this:

...

<joined-subclass name="model.Derived">
  <key>
    <column name="k1" />
    <column name="k2" />
  </key>
   ...
</joined-subclass>
...


I tried this:

/** @hibernate.joined-subclass
 * @hibernate.joined-subclass-key 
 * @hibernate.key-column name="k1"
 * @hibernate.key-column name="k2"
 * */
public class Derived extends Base {

But got this:

    <joined-subclass name="model.Derived">
      <key/>
    </joined-subclass>



Any suggestions on my use of annotations, or changes to the jelly
implementation would be very welcome.

Critiques of the database design are valid, but are less useful.

Brendan


Reply via email to