This one time, at band camp, pixelandink.com said:

p>
p>I've mapped a field in one of my classes's fields to a BLOB colum in
p>MySQL, following the example in the JDO types documentation.
p>
p>     <field name="dataS" type="stream" >
p>       <sql name="data" type="blob" dirty="ignore"/>
p>     </field>
p>
p>I've had no trouble putting data into reocrds from my objects via  a
p>getter method in my class, but I can't get data back out of MySQL with a
p>setter method. It's not clear to me from the docs what type the argument
p>to the set method for the field in my class should be. I tried the
p>"natural" type...
p>
p>public void setDataS(InputStream s)
p>
p>When called by Castor, s is null.

David,

I'm confused as to which operation actually works. An accessor
method (the getter) is used to fetch data from the database and the
mutator method (the setter) is used to assign data to objects which
eventually put the data into the database. At any rate, I would
recommend that you take a look at the tests in src/tests/jdo to see
how they handle BLOBs.

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

Reply via email to