[prev in list] [next in list] [prev in thread] [next in thread] 

List:       turbine-torque-user
Subject:    Re: XXX.getXXX() and XXX.addXXX()
From:       Saravana Krishnan <saravkrish () uky ! edu>
Date:       2004-12-09 19:19:01
Message-ID: 1102619940.24030.20.camel () r2d2
[Download RAW message or body]

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" <saravkrish@uky.edu> 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: torque-user-unsubscribe@db.apache.org
> > For additional commands, e-mail: torque-user-help@db.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic