This one time, at band camp, Slavek Psenicka said: SP>there is a way to specify read-only attribute on sql element like: SP> SP> <field name="b" type="B"> SP> <sql name="b_id" read-only="true"/> SP> </field> SP> SP>and Castor will ignore the field in create/update stements. Quite useful for SP>me, SP>but undocumented. Is it supported feature, or "deprecated" or?
Slavek, I've not used the read-only attribute of the <sql> element myself. I usually make use of the OQLQueryImpl.execute( short accessmode) for that: http://www.castor.org/javadoc/org/exolab/castor/jdo/engine/OQLQueryImpl.html#execute(short) The only documentation that I know of for the read-only attribute on the <sql> element is located here: http://www.castor.org/jdo-mapping.html#The-%3Cclass%3E-element-- and here: http://www.castor.org/mapping.dtd Quickly looking through the source for org.exolab.castor.mapping.xml.SqlDescriptor and org.exolab.castor.persist.TransactionContext seems to indicate that read-only is supported, but I can't be sure because I've not used it myself. Have you tried to use it? If so, what are your results? Bruce -- perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");' ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
