Package com.cin.entity

Examples of com.cin.entity.Migration


    }
  }
 
  public void updateUserMigration(UserDTO user)
  {
    Migration ejb = manager.find(Migration.class, user.getSsn());
    if( ejb == null )
    {
      ejb = user.getMigration().toEJB(user.getSsn());
      persist(ejb);
    } else {
      ejb.setMigrationcode(user.getMigration().getMigrationCode());
      ejb.setMigrationdistance(user.getMigration().getMigrationDistance());
      ejb.setMigrationfromsunbelt(user.getMigration().getMigrationFromSunBelt());
      ejb.setMigrationmove(user.getMigration().getMigrationMove());
     
      update(ejb);
    }
  }
View Full Code Here


      migrationFromSunBelt = migrationFromSunBelt.trim();
    }
  }
 
  public Migration toEJB(int ssn){
    Migration ejb = new Migration();
    ejb.setMigrationcode(migrationCode);
    ejb.setMigrationdistance(migrationDistance);
    ejb.setMigrationfromsunbelt(migrationFromSunBelt);
    ejb.setMigrationmove(migrationMove);
    ejb.setSsn(ssn);
    return ejb;
  }
View Full Code Here

TOP

Related Classes of com.cin.entity.Migration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.