}
}
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);
}
}