Refer attached files which work for me in XDoclet 2. Hierarchy is as follows--> IEntity --> BaseAuditObject --> BaseOrgAuditObject --> EventSource --> CaptureEventSource
Thanks, Ashish -----Original Message----- From: Stundzig, Steffen [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 11:58 PM To: [email protected] Subject: RE: [xdoclet-user] How could I use javadoc from super classes hi ashish, thanks for your quick answer. But it doesn't work for me as in xdoclet 1.2.3. Here are some code snippets: --------- Diary.java ---------- /** * @hibernate.class */ public class Diary extends AHImpl { /** * @hibernate.set table="diary_history"; */ public Set getHistoryEntries() { return super.getHistoryEntries0(); } .... } -------- AHImpl.java ---------- /** * @hibernate.subclass */ public class AHImpl { private Set historyEntries; /** * @hibernate.key column="id"; * @hibernate.set cascade="save-update" lazy="true" * @hibernate.composite-element class="HistoryEntry" */ public abstract Set getHistoryEntries(); public Set getHistoryEntries0() { return this.historyEntries; } } --------- The main goal is to encapsulate as much as possible in the superclass. Did I missed something? MfG Steffen... > -----Original Message----- > From: Ashish Raniwala [mailto:[EMAIL PROTECTED] > Sent: Friday, January 13, 2006 8:43 AM > To: [email protected] > Subject: RE: [xdoclet-user] How could I use javadoc from super classes > > XDoclet 2 also has same behavior, I also have same scenario > that super class > has common attributes and all sub classes are actually > hibernate POJOs. > XDoclet 2 creates mapping for attributes in super class also. > So you should > be fine with same structure when you migrate to XDoclet 2.0. > Thanks, > Ashish > > -----Original Message----- > From: Stundzig, Steffen [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 12, 2006 11:34 PM > To: [email protected] > Subject: [xdoclet-user] How could I use javadoc from super classes > > Hi, > > I'm actually migrating my hibernate stuff from xdoclet 1.2.3 > to xdoclet > 2.0, because I need the hibernate filter's. > > I've a @hibernate.class pojo that extends another class. In the super > class I've a method called e.g. getHistorieEntries(), also in > the super > class is the javadoc with @hibernate tags, which defines the set and > association and lazyness and so on. > > On xdoclet 1.2.3 the mapping file generator read's not only the base > java class, but also super classes and super interfaces. Is it also > possible with xdoclet2.0? And if so, how? > > Since I think that's a general xdoclet feature, not only hibernate > specific, I ask it in this list. > > Could somebody help my or point me to the right docs? > > > > > MfG > Steffen... > >
