I notice that a Sleeve object extends a MediumContainer object. However,
the Sleeve has nothing more than an id. Why then does a Sleeve extend
a MediumContainer if there is nothing more to model than an id? Is this
extension really necessary? Evidently Castor is seeing the Sleeve change
for some reason and I'm not sure why. Please post the relevant portion
of the client code.
You are correct. The Sleeve extends the MediumContainer and nothing more. If in the near future I need additional fields in Sleeve, which don't belong to MediumContainer, I don't need to much extra coding and fuss.
This is the relevant client code:


db.begin();
List l = worker.execute("SELECT o FROM kws.mediadb.business.Sleeve o");
Sleeve sleeveToUpdate = (Sleeve)l.get(0);
sleeveToUpdate = (Sleeve)db.load(sleeveToUpdate.getClass(), sleeveToUpdate.getId());
sleeveToUpdate.setTitle("123");
db.commit();


So I am setting the title field, which is a member of MediumContainer (not Sleeve).

_________________________________________________________________
Chatten met je online vrienden via MSN Messenger. http://messenger.msn.be

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




Reply via email to