Hi Thomas, Yes, thats what I'm doing for now. The java code doesn't look complicated. Not sure how complicated it will be to write a velocity template for that. I don't know Velocity and I will soon be leaving my current job (I'm a student working for a Prof.) and won't be spending too much time on this. So I can't really learn Velocity and write a patch.
Thanks, Sarav P.S: Never been to scarab before, will try to find it out myself and will scream for help if I can't :) On Thu, 2004-12-09 at 04:16, Thomas Fischer wrote: > > > > Hi Sarav, > > can you please open an issue on this in scarab ? This does not sound like > an easy enhancement to me, so dont expect it too soon. > > In the meantime, you can override the object's save()-Method to get the > behaviour you want. > > Thomas > > "Saravana Krishnan Kannan" <[EMAIL PROTECTED]> schrieb am 08.12.2004 > 22:51:23: > > > Hi, > > > > The subject sounds pretty confusing. I have a table X which has > > one to many mapping within itself, that is, a records in X can have > > several other records in X as its children. I see that such > > relations do not have any auto generated get or add methods and are > > also not saved when XXX.save() is called. I initially thought this > > was to prevent an infinite loop of saves if there is a loops in the > > relation. Looking more into the code I see a flag "alreadyInSave", > > which can be used to solve the infinite loop problem. > > > > Why is this relation not included in the auto-generated code? Is > > there some reason I'm missing out? I'm using Torque 3.1 btw. It > > would be nice if this could be included in the auto-generated code. > > Also, if you do have some reason to not generate the code, it would > > be great if a flag can be added to "foreign-key" tag to force the > > particular relation into autogenerated code. > > > > Thanks, > > Sarav > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
