-->
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.  [ 3 posts ] 
Author Message
 Post subject: xdoclet subclass tag
PostPosted: Mon Dec 29, 2003 12:19 am 
Beginner
Beginner

Joined: Sun Dec 21, 2003 11:19 pm
Posts: 22
Location: Kentucky, USA
I am unable to get xdoclet to generate a mapping file for a subclass. I have seen several examples on the net but it doesn't seem to work for me. I would appreciate any pointers.

Person.java
Code:
/**
* @hibernate.class table="Person" proxy="Person" discriminator-value="Person" 
* @hibernate.discriminator column="subclass" type="string" length="15"
*/
public class Person implements Serializable {
// property tags
}


Student.java
Code:
/**
* @hibernate.subclass proxy="Student" discriminator-value="Student" 
*/

public class Student extends Person implements Serializable {
// property tags
}


excerpt from ant messages

[hibernatedoclet] 22:59:26,052 DEBUG matchesGenerationRules:717 - Reject class 'com.ccsi.teachersaid.common.Student' because it doesn't have class tag 'hibernate.class'.
[hibernatedoclet] 22:59:26,062 DEBUG matchesGenerationRules:723 - Accept class 'com.ccsi.teachersaid.common.Person' because it has class tag 'hibernate.class'.

Thanks for your time!
Timothy Vogel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 29, 2003 5:49 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Strange, works for me with xdoclet 1.2b4

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 29, 2003 7:31 am 
Beginner
Beginner

Joined: Sun Dec 21, 2003 11:19 pm
Posts: 22
Location: Kentucky, USA
It was (of course) a user error. I was looking for a seperate file for the Student class and it was embedded in the Person.hbm.xml.
Timothy Vogel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.