> This one time, at band camp, Quique Ruiz-Valenciano said: > > QR>I test the feature JDO: Views of Same Object >(http://castor.exolab.org/tips-tricks.html) > QR>but I haven't achieved to run it. > > So what kind of problem are you having? Please provide more information. >
Uppps ... sorry. Problem: The exception, java.lang.IllegalStateException: Transaction org.exolab.castor.jdo.engine.TransactionContextImpl@493102 does not hold the read lock: A/3/32 -/-! is throwed. Remember that the mapping was: <class name="A" identity="id"> <map-to table="table_a" /> <cache-type type="none" /> <field name="id" type="long"> <sql name="id_a" type="bigint" /> </field> </class> <class name="view" identity="id"> <map-to table="table_a" /> <cache-type type="none" /> <field name="id" type="long"> <sql name="id_a" type="bigint" /> </field> <field name="fieldA" type="long"> <sql name="field_a" type="bigint" /> </field> </class> Finally, I must comment that I create a 'view' class instance, and then (at this point the exception is throwed) I create a 'A' class instance. Two instances are created in different transactions. Thanks, Quique -- ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev