Hi!
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?
_ _ __ (_)| |_ / _\| || _ \ ~ be persistent ~ \__/| ||___/ v. 1.0.1 /_/
Welcome to the OJB JDO RI tutorial application
[0] List all product entries
[1] Enter a new product
[2] Edit a product entry
[3] Delete a product entry
[4] Quit Application
type in number to select a use case
0
The list of available products:
[JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
javax.jdo.JDOUserException: Class given to getExtent,
org.apache.ojb.tutorial5.Product, does not implement javax.jdo.spi.PersistenceCapable
at com.sun.jdori.common.PersistenceManagerImpl.getExtent(Unknown Source)
at com.sun.jdori.common.query.QueryImpl.checkCandidates(Unknown Source)
at com.sun.jdori.common.query.QueryImpl.execute(Unknown Source)
at org.apache.ojb.tutorial5.UCListAllProducts.apply(Unknown Source)
at org.apache.ojb.tutorial5.Application.run(Unknown Source)
at org.apache.ojb.tutorial5.Application.main(Unknown Source)
Cannot close PersistenceManager while transaction is still active.
-- Regards,
Magnus Strand
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
