Ralf, another problem! How can I define the username and password on DDLUTILS XML? Know it's creating my tablets but in wrong "context"! I'm using DERBY Database, and my XML is:
*<?xml version="1.0"?> <!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database.dtd"> <!-- <database name="InoveDB" username="admin" password="admin"> --> **<database name="InoveDB" >* * <table name="Usuario"> <column name="OID" type="VARCHAR" size="8" primaryKey="true" required="true"/> <column name="NOME" type="VARCHAR" size="30" required="true"/> <column name="USUARIO" type="VARCHAR" size="15" required="true"/> <column name="SENHA" type="VARCHAR" size="15" required="true"/> <column name="EMAIL" type="VARCHAR" size="40" required="false"/> <column name="TIPO_USUARIo" type="VARCHAR" size="1" required="false"/> <unique name="NOTIFICATION_USUARIO_UNIQUE_NAME"> <unique-column name="USUARIO"/> </unique> </table> </database>* It's possible to do this, set the username and pass in XML? 2011/11/3 Dante Basso <[email protected]> > Ralf, thanks I solved the problem! > > I have used in mapping this: > * > <field type="String".... > * > But need to be this: > > *<field type="string"....* > > Now it's working nice. Thank you anyway! > > 2011/11/2 <[email protected]> > > Hi Dante, >> >> could you please send us the mapping of the entity(ies) involved in the >> transaction. Having only the stacktrace I have no idea what goes wrong. >> >> Regards >> Ralf >> >> >> >> >> Hello everyone, I'm trying to use the castor for the first time, and use >> the Derby as my Database. >> So, I'm getting some error trying to persist the my Object. When I >> execute this code: "database.create(obj);", I got this error: >> >> The stack: >> >> *org.exolab.castor.jdo.PersistenceException: Nested error: >> java.lang.UnsupportedOperationException: Not supported yet. >> at >> org.castor.persist.AbstractTransactionContext.walkObjectsToBeCreated(AbstractTransactionContext.java:784) >> at >> org.castor.persist.AbstractTransactionContext.create(AbstractTransactionContext.java:709) >> at >> org.exolab.castor.jdo.engine.AbstractDatabaseImpl.create(AbstractDatabaseImpl.java:286) >> * >> >> This can be a Mapping error, a code problem, a Class problem... >> How can I fix it? >> >> Thanks >> >> -- >> Dante Cesar Basso Filho >> SUPRIDATTA >> (45) 3328-0707 >> > > > > -- > Dante Cesar Basso Filho > SUPRIDATTA > (45) 3328-0707 > -- Dante Cesar Basso Filho SUPRIDATTA (45) 3328-0707

