Here is the stack trace of the error
org.exolab.castor.jdo.PersistenceException: non persistence capable:
com.freever.db.JdoTest
at
org.exolab.castor.persist.ClassMolder.create(ClassMolder.java:822)
at
org.exolab.castor.persist.LockEngine.create(LockEngine.java:492)
at
org.exolab.castor.persist.TransactionContext.create(TransactionContext.j
ava:804)
at
org.exolab.castor.jdo.engine.DatabaseImpl.create(DatabaseImpl.java:338)
at
com.freever.xmlTransform.XmlTransform.write(XmlTransform.java:121)
at
com.freever.xmlTransform.XmlTransform.main(XmlTransform.java:45)
-----Message d'origine-----
De : Patrick van Kann [mailto:[EMAIL PROTECTED]]
Envoy� : vendredi 5 juillet 2002 17:33
� : [EMAIL PROTECTED]
Objet : Re: [castor-dev] IDENTITY problem on sqlserver
Hello,
Could you post the stack trace of the error please?
Patrick
BOUEY St�phane wrote:
> Hello,
>
> I have an error when i try to create an object with :
>
> JdoTest jdotest = new JdoTest();
>
> db.begin();
> jdotest.setName("test");
> db.create(jdotest);
> db.commit();
>
>
> my mapping.xml file is :
>
> <!DOCTYPE databases PUBLIC "-//EXOLAB/Castor Mapping DTD Version
1.0//EN"
> "http://castor.exolab.org/mapping.dtd">
> <mapping>
>
> <!-- Mapping for JdoTest -->
> <class name="com.freever.db.JdoTest"
> identity="id" key-generator="IDENTITY">
>
> <map-to table="jdotest" />
>
> <field name="id" type="integer" >
> <sql name="id" type="integer"/>
> <xml node="attribute"/>
> </field>
>
> <field name="name" type="string">
> <sql name="name" type="char" dirty="check" />
> <xml node="text" />
> </field>
>
> </class>
>
> </mapping>
>
> my schema file :
>
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
>
> <xsd:element name="jdoTest">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="id" type="xsd:integer" />
> <xsd:element name="name" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
>
>
> where is the problem ?
>
> Thank you,
> st�phane BOUEY
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev