You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Thomas Dudziak <to...@first.fhg.de> on 2004/10/03 17:36:36 UTC
Re: [JDO] Exception in Tutorial 5
Magnus Strand wrote:
> I get an exception when trying to run tutorial5 (JDO),
> see below.
>
> I am using the ojb-blank project with mysql on Win XP Pro.
>
> Does anyone know why
> the class
> org.apache.ojb.tutorial5.Product
> does not implement javax.jdo.spi.PersistenceCapable?
>
> Could it be some configuration problem with Product.jdo or OJB.properties?
Seems to be that the persistent classes are not JDO-enhanced yet. The
build file of the ojb-blank project contains a target for this purpose,
which enhances the Product class of the jdo tutorial. So you simply run
ant build enhance-jdori
and your problem should be solved.
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: [JDO] Exception in Tutorial 5
Posted by Magnus Strand <ma...@tim.se>.
Thanks a lot!!!
Now I have tutorial 5 up and running,
Magnus
Thomas Dudziak wrote:
> Magnus Strand wrote:
>
>> I get an exception when trying to run tutorial5 (JDO),
>> see below.
>>
>> I am using the ojb-blank project with mysql on Win XP Pro.
>>
>> Does anyone know why
>> the class
>> org.apache.ojb.tutorial5.Product
>> does not implement javax.jdo.spi.PersistenceCapable?
>>
>> Could it be some configuration problem with Product.jdo or
>> OJB.properties?
>
>
> Seems to be that the persistent classes are not JDO-enhanced yet. The
> build file of the ojb-blank project contains a target for this
> purpose, which enhances the Product class of the jdo tutorial. So you
> simply run
>
> ant build enhance-jdori
>
> and your problem should be solved.
>
> Tom
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
--
Med vänliga hälsningar
Magnus Strand
System Developer, MSc
magnus.strand@tim.se
Direct: +46 40 601 57 16
Office: +46 40 601 57 00
Mobile: +46 704 20 57 16
Teknik i Media AB
Södra Förstadsgatan 2
SE-211 43 Malmö
Sweden
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org