Thanks for your help, I now have this working.
However, as I've now gone to Hibernate 2.0, hibernatedoclet doesn't seem to
support this for the jbossservice subtask. In 2.0 of hibernate, they've
changed the packages (from cirrus.hibernate to net.sf.hibernate, etc.) So,
there needs to be a way of setting the target version of hibernate.
For example, in the jboss-service.xml file, the following is generated:
<mbean code="cirrus.hibernate.jmx.HibernateService"
name="jboss.jca:service=Hibernate">
but it should be:
<mbean code="net.sf.hibernate.jmx.HibernateService"
name="jboss.jca:service=Hibernate">
Additionally, the MapResources entries is one long comma-separated list of
.hbm.xml files, eg:
<attribute name="MapResources">xxx.hbm.xml,yyy.hbm.xml</attribute>
etc.
whereas it would be better to use the following:
<resource name="xxx.hbm.xml"/>
<resource name="yyy.hbm.xml"/>
etc.
So, is there anyway I can fix the first problem, short of modifying the xdt
template file and rebuilding?
TIA
Craig
[EMAIL PROTECTED] wrote:
> Subject: Re: [Xdoclet-user] Inheritance with hibernate and xdoclet
>
>
>
>> Is there a hibernate expert out there who knows how to do
>> inheritance with hibernatedoclet?
>> I have this problem - I'm wanting to persist a class that inherits
>> its ID from a base class, but hibernatedoclet seems unable to do
>> this. For example:
>>
>> public class Base
>> {
>> private int id;
>> /**
>> * @hibernate.id generator-class="assigned"
>> */
>> private int getId()
>> {
>> return id;
>> }
>> private void setId(int id)
>> {
>> this.id = id;
>> }
>> }
>>
>> /**
>> * @hibernate.class table="Sub"
>> */
>> public class Sub extends Base
>> {
>> private String name;
>>
>> /**
>> * @hibernate.property
>> */
>> private String getName()
>> {
>> return name;
>> }
>> private void setName(String name)
>> {
>> this.name = name;
>> }
>> }
>>
>
> This works for me with actual CVS version vhibernate
> doclet ( at least used to work yesterday, I did not
> recompiled it yet :) )
>
> POssible cause could be that your base class source is
> not seen by xdoclets xjavadoc - in this case it's
> unable to find class tags from there...
>
> regards,
>
> =====
> Konstantin Priblouda ( ko5tik ) Freelance Software developer
> < http://www.pribluda.de > < play java games -> http://www.yook.de >
> < render charts online -> http://www.pribluda.de/povray/ >
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Does your code think in ink?
> You could win a Tablet PC. Get a free Tablet PC hat just for playing.
> What are you waiting for?
> http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.
Does your code think in ink? You could win a Tablet PC.
Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user