-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: (Xdoclet2) Subclass/Joines Subclass again
PostPosted: Fri Dec 12, 2003 8:01 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
Hi all, yet another question about those mappings:

If direct subclass is not subclass itself, shall I look for subclasses further down hierarchy?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 12, 2003 8:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
yes, certainly


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 12, 2003 8:19 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
and cut the search on first subclass found,
and look for his subclasses?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 12, 2003 8:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
sounds good :)


Top
 Profile  
 
 Post subject: done :)
PostPosted: Fri Dec 12, 2003 9:13 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping>
<class name="org.xdoclet.hibernate.subclass.Root" table="blurge">
<subclass discriminator-value="foo" name="org.xdoclet.hibernate.subclass.Foo">
</subclass>
<subclass discriminator-value="bar" name="org.xdoclet.hibernate.subclass.Bar">
<subclass discriminator-value="baz" name="org.xdoclet.hibernate.subclass.Baz">
<property name="a">
</property>
<property name="b">
</property>
</subclass>
<subclass discriminator-value="baz" name="org.xdoclet.hibernate.subclass.Bang">
<property name="a">
</property>
<property name="c">
</property>
</subclass>
</subclass>
<joined-subclass name="org.xdoclet.hibernate.subclass.Joined">
<key>
</key>
</joined-subclass>
</class>
</hibernate-mapping>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.