Adding support of join is not limited by adding join-property. We also should define <key> for <join> in some way. And I am not completely sure what xdoclet tags should be introduced because of I have never used <join> before.
Anyway please open a ticket in JIRA for this issue. On 6/15/05, Konstantin Priblouda <[EMAIL PROTECTED]> wrote: > Hallo Andreas, du bist in der falschen Liste. > Es gibt eine Speziell f�r Plugins. Diese ist > nur f�r XDoclet. > > > i have a small problem with join tables in xdoclet > > 2. i have a class > > mapping that contains the following join table > > mapping (works fine > > with hibernate 3.0) : > > > > <join table="BA2_R_GESCHAEFT_VW" optional="true" > > inverse="false" > > fetch="join"> > > <key> > > <column name="BANK_ID" scale="3" > > precision="0" not-null="true" > > sql-type="NUMBER" /> > > <column name="STICHTAG" scale="8" > > precision="0" not-null="true" > > sql-type="NUMBER" /> > > <column name="LAUFKENNUNG_NR" scale="2" > > precision="0" > > not-null="true" sql-type="NUMBER" /> > > <column name="KONTO_NR" scale="15" > > precision="0" not-null="true" > > sql-type="NUMBER" /> > > <column name="KONTO_NR_SUB" scale="15" > > precision="0" not-null="true" > > sql-type="NUMBER" /> > > </key> > > <property name="istKurzfristig" > > type="java.lang.Boolean"> > > <column name="IST_KURZFRISTIG" scale="1" > > precision="0" > > not-null="false" sql-type="NUMBER" /> > > </property> > > </join> > > > > problem is, that > > i have no idea how to tell xdoclet 2 that the > > property "istKurzfristig" > > has to be within the join tag. xdoclet always adds > > the property > > tag to the class tag that surrounds the join tag. > > Looking at the > > Join.jelly file it looks like it is not possible to > > add properties > > to the join table tag, which makes the join tag > > impossible to use > > with xdoclet 2, or did i miss something ? > > AFAIR currently @hibernate.property tag will not > support this. I think @hibernate.joined-property shall > be introduced to support this ( same params as > @hibernate.property, with table-name added ) > > stay tuned while we investigate this matter :) > ( you could await fresh snapshot today ) > > regards, -- anatol
