Here is the XDoclet schema output (repository_user.xml) I removed all irrelevant data to keep it clear.
<!-- file containing the repository descriptions for user-defined types --> <!-- Generated by the xdoclet-ojb module --> <class-descriptor class="kdms.core.AbstractRoom" > <extent-class class-ref="kdms.core.Room"/> </class-descriptor> <class-descriptor class="kdms.core.Room" table="abstract_rooms" > <field-descriptor name="abstractroom_id" column="abstractroom_id" jdbc-type="INTEGER" primarykey="true" autoincrement="true" access="anonymous" > </field-descriptor> <field-descriptor name="ojbConcreteClass" column="ojbConcreteClass" jdbc-type="VARCHAR" length="50" > </field-descriptor> <field-descriptor name="number" column="number" jdbc-type="INTEGER" > </field-descriptor> <field-descriptor name="size" column="size" jdbc-type="REAL" > </field-descriptor> <field-descriptor name="apartment_id" column="apartment_id" jdbc-type="INTEGER" access="anonymous" > </field-descriptor> <field-descriptor name="capacity" column="capacity" jdbc-type="INTEGER" > </field-descriptor> <index-descriptor name="room_unique" unique="true" > <index-column name="number"/> <index-column name="apartment_id"/> </index-descriptor> </class-descriptor> Sylvain Juge wrote: > Hi, I'm quite newbie to OJB, and I really need help. > > I've got one base class "AbstractRoom" and two derived classes "Room" > and "Apartement", and I need to store them in one table named > "abstract_rooms". > > The problem is that when I generate repository schema for the > database, it's like if the Apartement class is dropped (even if > Xdoclet process the source file), because it is not present in the > resulting repository file, thus absent of AbstractRoom extends. > Despite abstract_rooms table contains all columns from Rooms class, > there is no one from Apartement. > It seems that my class "Apartement" is not seen by XDoclet as a > persitence capable class, or simply "forget" my class and I wonder > what Am I doing wrong. > > Could you post the output of the XDoclet module ? Do you get any error/warning messages ? You can also try running Ant with the -v commandline option to get some more output. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] .