This was the only one that I came across.  Are there more?  This
sounds like a deficiency in the SecurityService, rather than a problem
in Torque.  Is there something that can be done to correct the
SecurityService?


John McNally <[EMAIL PROTECTED]> writes:

> this will break the security service in fulcrum.  Some torque generated
> objects implement an interface that does not allow the save method to
> throw a TorqueException.
>
> john mcnally
>
> [EMAIL PROTECTED] wrote:
> > 
>> dlr         02/03/13 09:51:31
>> 
>>   Modified:    src/templates/om Object.vm
>>   Log:
>>   save() should throw TorqueException, rather than vanilla Exception.
>> 
>>   Revision  Changes    Path
>>   1.22      +1 -1      jakarta-turbine-torque/src/templates/om/Object.vm
>> 
>>   Index: Object.vm
>>   ===================================================================
>>   RCS file: /home/cvs/jakarta-turbine-torque/src/templates/om/Object.vm,v
>>   retrieving revision 1.21
>>   retrieving revision 1.22
>>   diff -u -u -r1.21 -r1.22
>>   --- Object.vm 2 Mar 2002 02:23:55 -0000       1.21
>>   +++ Object.vm 13 Mar 2002 17:51:31 -0000      1.22
>>   @@ -771,7 +771,7 @@
>>         * Stores the object in the database.  If the object is new,
>>         * it inserts it; otherwise an update is performed.
>>         */
>>   -    public void save() throws Exception
>>   +    public void save() throws TorqueException
>>        {
>>     #if ($complexObjectModel)
>>                save(${table.JavaName}Peer.getMapBuilder()
>> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to