You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Johnny Quazar <qu...@bitblaster.com> on 2003/01/30 21:41:06 UTC

2.2 migration - my approach

FWIW, I took some false starts and then decided not to make 
hundreds(?) of changes to my app to move from NumberKey to int and 
from Vector to List, and instead added methods to the new generated 
Torque classes for my schema, such as:


public  class Message
     extends cc.rnn.nh.om.BaseMessage
     implements Persistent
{
      private void logDeprecated ()
      {
         if (TurbineResources.getBoolean("nh.log.deprecated", false))
            Log.debug("*** using old methods for Message");
      }

      public void setBlogId(NumberKey n) throws TorqueException
      {
         logDeprecated();
         setBlogId( Integer.parseInt(n.toString()) );
      }


Obviously this eases the transition only by postponing a lot of work 
until later, but it seemed the right way to go for me and this 
project (I had plenty to do on it before I added "migrate to 2.2" to 
the list).

Thoughts or comments?

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