Hello, 


when class Child extends class Super.

The class Super have the attribute a.


Loading an instance of Child and 

modify (in transactional context) the attribute a of the superclass Super 

then I get the error


com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near the keyword 'WHERE'.


, if the attribute a (of the superclass) isn't
described

in the mappingfile for the childclass. 

Mapping:


  
<!-- Child-Class-->

  <<class name="Super" access="shared" identity="id">

    <<map-to table="Super" xml="modul" />

        <<cache-type type="count-limited" capacity="100" /> 

          <<field name="id" type="integer" required="true" direct="false" lazy="true" 
dirty="ignore">

              <<sql name="Id" type="integer" dirty="ignore" />

         <</field>

         <<field name="a" type="String" required="true" direct="false" lazy="true" 
dirty="ignore">

              <<sql name="A" type="char" dirty="ignore" />

        <</field>

  <</class>


<!-- Child-Class-->

  <<class name="Child" access="shared" extends="Super">

    <<map-to table="Super" xml="modul" />

--> without --> Error !

--> <<field name="a" type="String" required="true" direct="false" lazy="true"
dirty="ignore">

-->           <<sql name="A" type="char" dirty="ignore" />

-->     <</field>


  <</class>



Is there any workaround for this overhead ?

Regards, Inga.
com.sybase.jdbc2.jdbc.SybSQLException: Incorrect syntax near the keyword 'WHERE'.

 


        at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2408)

        at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:1844)

        at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)

        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201)

        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182)

        at com.sybase.jdbc2.jdbc.SybStatement.updateLoop(SybStatement.java:1479)

        at com.sybase.jdbc2.jdbc.SybStatement.executeUpdate(SybStatement.java:1462)

        at 
com.sybase.jdbc2.jdbc.SybPreparedStatement.executeUpdate(SybPreparedStatement.java:
88)

        at org.exolab.castor.jdo.engine.SQLEngine.store(SQLEngine.java:849)

        at org.exolab.castor.persist.ClassMolder.store(ClassMolder.java:1544)

        at org.exolab.castor.persist.LockEngine.store(LockEngine.java:745)

        at 
org.exolab.castor.persist.TransactionContext.prepare(TransactionContext.java:1162)

        at org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:498)

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to