Examples of Federation


Examples of org.xrace.model.Federation

  public final void testCreateCompteNomUsagerUnique()
  {
    try
    {
      final Federation pays = getFederationService().findByCode("CAN");
      final Federation federation = getFederationService().findByCode(
          "CAN");
      Assert.assertNotNull(federation);

      Personne personne = new Personne("Morane", "Bob",
          "786, rue de la rue", "Beauceville", "T7U 8U7",
View Full Code Here

Examples of org.xrace.model.Federation

        "carnaval@fqsc.net"));
  }

  public final void testCreateCoachCompte()
  {
    final Federation pays = getFederationService().findByCode("CAN");
    final Federation federation = getFederationService().findByCode("CAN");
    Assert.assertNotNull(federation);

    Personne personne = new Personne("Dead", "Mau5",
        " 776 Street somewhere in Toronto", "Toronto", "U80 9K9",
        "777-777-7777", new GregorianCalendar(1970, 1, 1).getTime(),
View Full Code Here

Examples of org.xrace.model.Federation

    {
      personne = new Personne();
    }

    String codeUci = line.getCodeUci();
    Federation federation = null;

    if (codeUci != null && !StringUtils.isEmpty(codeUci)
        && codeUci.length() > 3)
    {
      String codePays = codeUci.substring(0, 3);
View Full Code Here

Examples of org.xrace.model.Federation

  public Personne newPersonne()
  {
    final Personne personne = new Personne();

    final Federation defaultFederation = federationService
        .findByCode("CAN");
    final Province defaultProvince = provinceService.findByCode(
        defaultFederation, "QB");

    personne.setPays(defaultFederation);
View Full Code Here

Examples of org.xrace.model.Federation

  private HibernateTemplate hibernateTemplate;

  @Override
  protected void onSetUpInTransaction() throws Exception
  {
    final Federation pays = getFederationService().findByCode("CAN");

    //Quelques préliminaires...
    disciplineDh = getDisciplineService().findByNom("DH");
    disciplineXc = getDisciplineService().findByNom("XC");
    categorieDse = getCategorieService().findByCode("DSE", "H",
        disciplineDh);
    categorieXsx = getCategorieService().findByCode("XSX", "H",
        disciplineXc);
    categorieXss = getCategorieService().findByCode("XSS", "H",
        disciplineXc);
    saison = getSaisonService().findByAnnee(2007).get(0);
    final Evenement evenement1 = getEvenementService().getEvenementParNo(
        saison, 4);
    course1 = getCourseService().getCourseParNom(evenement1,
        "Cross-Country");
    final Evenement evenement2 = getEvenementService().getEvenementParNo(
        saison, 5);
    course2 = getCourseService().getCourseParNom(evenement2,
        "Cross-Country");

    //On crée d'abord une personne qui sera une inscription sur place.
    //Donc on n'a pas de compte. On va juste assigner une plaque.
    personneInscriteSurPlace = new Personne("Cote", "MarcAndre",
        "pas important", "Québec", "G1B 2U8", "455-909-9090",
        new GregorianCalendar(1970, 0, 2).getTime(), "M", pays
            .getProvinces().get(0), pays, pays);

    getPersonneService().save(personneInscriteSurPlace);

    //On assigne une couple d'info saison à la personne.
    //Bon, il semble qu'il est bon en DH.
    infoSaisonDseMan = getInfoSaisonService().setInfoSaison(saison,
        personneInscriteSurPlace, categorieDse);
    //La course d'après, il décide de faire du XC... Mais bon, comme on ne peut
    //être bon dans toute dans la vie, il commence au bas de l'échelle...
    //(Dh = pas de cardio ?).
    infoSaisonXssMan = getInfoSaisonService().setInfoSaison(saison,
        personneInscriteSurPlace, categorieXss);
    //Ensuite, il se rend compte qu'il est bon en XC ! Finalement, il a
    //cardio pas pire ! Ainsi, il s'inscrit dans une catégorie supérieure
    //à la course d'après.
    infoSaisonXsxMan = getInfoSaisonService().setInfoSaison(saison,
        personneInscriteSurPlace, categorieXsx);

    //La personne va ensuite créer un compte dans le site d'inscription en ligne.
    //Bien sur, môssieu prends la peine de bien écrire son nom !
    personneCompteNoAdmin = new Personne("Marc - Andre", "Coté",
        "pas important", "Québec", "G1B 2U8", "455-909-9090",
        new GregorianCalendar(1970, 0, 2).getTime(), "M", pays
            .getProvinces().get(0), pays, pays);
    compteNonAdmin = getCompteService().createCompte(personneCompteNoAdmin,
        "mccote", "123", false, "fr");

    //Ouf, la marche est haute entre les touristes de senior sport et les professionnels
    //experts ! Il va se contenter de faire du XC en tant que senior sport.
    final Cart cart = new Cart();

    final Tarification tarif1 = getTarificationService()
        .findByCourseCategorie(course1, categorieXss);
    final Tarification tarif2 = getTarificationService()
        .findByCourseCategorie(course2, categorieXss);

    ComposantInscription composantInscription1 = new ComposantInscription(
        personneCompteNoAdmin, tarif1);

    CartItemInscription cartItemInscription1 = new CartItemInscription(
        composantInscription1);

    ComposantInscription composantInscription2 = new ComposantInscription(
        personneCompteNoAdmin, tarif2);

    CartItemInscription cartItemInscription2 = new CartItemInscription(
        composantInscription2);

    cart.add(cartItemInscription1, getRabaisEvenementService());
    cart.add(cartItemInscription2, getRabaisEvenementService());

    /*cart.add(new CartItemInscription(tarif1, personneCompteNoAdmin,
        getInscriptionService()), getRabaisEvenementService());
    cart.add(new CartItemInscription(tarif2, personneCompteNoAdmin,
        getInscriptionService()), getRabaisEvenementService());*/

    facture = getFactureService()
        .createFacture(personneCompteNoAdmin, cart);
    transaction = getTransactionService().createTransaction(
        personneInscriteSurPlace, facture);

    //Ne pas oublier d'assigner les plaques!
    getInfoSaisonService().assignPlaques(course1);
    getInfoSaisonService().assignPlaques(course2);

    infoSaisonXssAuto = getInfoSaisonService()
        .findBySaisonPersonneCategorie(saison, personneCompteNoAdmin,
            categorieXss);

    //La personne va ensuite créer autre compte. En plus, quelqu'un a eu la merveilleuse
    //idée de le mettre admin. Que va-t-on faire !!
    personneCompteAdmin = new Personne("Coté", "Marc - André",
        "pas important", "Québec", "G1B 2U8", "455-909-9090",
        new GregorianCalendar(1970, 0, 2).getTime(), "M", pays
            .getProvinces().get(0), pays, pays);
    getCompteService().createCompte(personneCompteAdmin, "mccote2", "123",
        true, "fr");

    //Il s'inscrit à une autre course, en créant un autre compte.
    personneCompteVide = new Personne("Coté", "Marc  André",
        "pas important", "Québec", "G1B 2U8", "455-909-9090",
        new GregorianCalendar(1970, 1, 1).getTime(), "M", pays
            .getProvinces().get(0), pays, pays);
    getCompteService().createCompte(personneCompteVide, "mccote3", "123",
        false, "fr");

    //Il s'inscrit à une autre course, et on ne valide pas que la personne
    //s'inscrit en ligne. L'admin entre un nouveau dossier personne.
    personneNoCompte = new Personne("Marc Andre", "Cote", "pas important",
        "Québec", "G1B 2U8", "455-909-9090", new GregorianCalendar(
            1970, 1, 1).getTime(), "M", pays.getProvinces().get(0),
        pays, pays);
    getPersonneService().save(personneNoCompte);
  }
View Full Code Here

Examples of org.xrace.model.Federation

  }

  private void createTestFederation()
  {
    getFederationService().save(
        new Federation("AHO", "NETHERLANDS ANTILLES",
            "ANTILLES NEERLANDAISES"));
    getFederationService()
        .save(new Federation("ALB", "ALBANIA", "ALBANIE"));
    getFederationService()
        .save(new Federation("ALG", "ALGERIA", "ALGERIE"));
    getFederationService()
        .save(new Federation("AND", "ANDORRA", "ANDORRE"));
    getFederationService().save(new Federation("ANG", "ANGOLA", "ANGOLA"));
    getFederationService().save(
        new Federation("ANT", "ANTIGUA AND BARBUDA",
            "ANTIGUA-ET-BARBUDA"));
    getFederationService().save(
        new Federation("ARG", "ARGENTINA", "ARGENTINE"));
    getFederationService()
        .save(new Federation("ARM", "ARMENIA", "ARMENIE"));
    getFederationService().save(new Federation("ARU", "ARUBA", "ARUBA"));
    getFederationService().save(
        new Federation("AUS", "AUSTRALIA", "AUSTRALIE"));
    getFederationService().save(
        new Federation("AUT", "AUSTRIA", "AUTRICHE"));
    getFederationService().save(
        new Federation("AZE", "AZERBAIJAN", "AZERBAIDJAN"));
    getFederationService()
        .save(new Federation("BAH", "BAHAMAS", "BAHAMAS"));
    getFederationService().save(
        new Federation("BAN", "BANGLADESH", "BANGLADESH"));
    getFederationService().save(
        new Federation("BAR", "BARBADOS ", "BARBADE"));
    getFederationService()
        .save(new Federation("BDI", "BURUNDI", "BURUNDI"));
    getFederationService().save(
        new Federation("BEL", "BELGIUM", "BELGIQUE"));
    getFederationService().save(new Federation("BEN", "BENIN ", "BENIN "));
    getFederationService().save(
        new Federation("BER", "BERMUDA", "BERMUDES"));
    getFederationService().save(
        new Federation("BIH", "BOSNIA-HERZEGOVNIA",
            "BOSNIE-HERZEGOVINE"));
    getFederationService()
        .save(new Federation("BIZ", "BELIZE ", "BELIZE "));
    getFederationService()
        .save(new Federation("BLR", "BELARUS", "BELARUS"));
    getFederationService().save(
        new Federation("BOL", "BOLIVIA ", "BOLIVIE"));
    getFederationService().save(new Federation("BRA", "BRAZIL ", "BRESIL"));
    getFederationService()
        .save(new Federation("BRN", "BAHRAIN", "BAHREIN"));
    getFederationService()
        .save(new Federation("BRU", "BRUNEI DARUSSALAM ",
            "BRUNEI DARUSSALAM"));
    getFederationService().save(
        new Federation("BUL", "BULGARIA ", "BULGARIE"));
    getFederationService().save(
        new Federation("BUR", "BURKINA FASO ", "BURKINA FASO"));
    getFederationService().save(new Federation("CAN", "CANADA ", "CANADA"));
    getFederationService().save(
        new Federation("CAY", "CAYMAN ISLANDS", "ILES CAIMANS"));
    getFederationService().save(new Federation("CGO", "CONGO", "CONGO"));
    getFederationService().save(new Federation("CHI", "CHILE", "CHILI"));
    getFederationService().save(
        new Federation("CHN", "PEOPLE’S REPUBLIC OF CHINA ",
            "REPUBLIQUE POPULAIRE DE CHINE"));
    getFederationService().save(
        new Federation("CIV", "IVORY COAST ", "COTE D'IVOIRE"));
    getFederationService().save(
        new Federation("CMR", "CAMEROON", "CAMEROUN"));
    getFederationService().save(
        new Federation("COL", "COLOMBIA", "COLOMBIE"));
    getFederationService().save(
        new Federation("COM", "COMOROS ", "COMORES"));
    getFederationService().save(
        new Federation("CPV", "CAPE VERDE", "CAP-VERT"));
    getFederationService().save(
        new Federation("CRC", "COSTA RICA ", "COSTA RICA"));
    getFederationService().save(
        new Federation("CRO", "CROATIA ", "CROATIE"));
    getFederationService().save(new Federation("CUB", "CUBA ", "CUBA"));
    getFederationService().save(new Federation("CYP", "CYPRUS ", "CHYPRE"));
    getFederationService().save(
        new Federation("CZE", "CZECH REPUBLIC ", "REPUBLIQUE TCHEQUE"));
    getFederationService().save(
        new Federation("DEN", "DENMARK ", "DANEMARK"));
    getFederationService().save(
        new Federation("DOM", "DOMINICAN REPUBLIC ",
            "REPUBLIQUE DOMINICAINE"));
    getFederationService().save(
        new Federation("ECU", "ECUADOR", "EQUATEUR"));
    getFederationService().save(new Federation("EGY", "EGYPT", "EGYPTE"));
    getFederationService().save(
        new Federation("ERI", "ERITREA", "ERYTHREE"));
    getFederationService().save(
        new Federation("ESA", "EL SALVADOR", "EL SALVADOR"));
    getFederationService().save(new Federation("ESP", "SPAIN", "ESPAGNE"));
    getFederationService().save(
        new Federation("EST", "ESTONIA ", "ESTONIE"));
    getFederationService().save(
        new Federation("ETH", "ETHIOPIA ", "ETHIOPIE"));
    getFederationService().save(new Federation("FIJ", "FIJI ", "FIDJI"));
    getFederationService().save(
        new Federation("FIN", "FINLAND ", "FINLANDE"));
    getFederationService().save(new Federation("FRA", "FRANCE ", "FRANCE"));
    getFederationService().save(new Federation("GAB", "GABON ", "GABON"));
    getFederationService().save(
        new Federation("GBR", "GREAT BRITAIN ", "GRANDE-BRETAGNE"));
    getFederationService().save(
        new Federation("GEO", "GEORGIA ", "GEORGIE"));
    getFederationService().save(
        new Federation("GER", "GERMANY ", "ALLEMAGNE"));
    getFederationService().save(new Federation("GRE", "GREECE ", "GRECE"));
    getFederationService()
        .save(new Federation("GRN", "GRENADA", "GRENADE"));
    getFederationService().save(
        new Federation("GUA", "GUATEMALA ", "GUATEMALA"));
    getFederationService().save(new Federation("GUI", "GUINEA ", "GUINEE"));
    getFederationService().save(new Federation("GUM", "GUAM ", "GUAM"));
    getFederationService().save(new Federation("GUY", "GUYANA ", "GUYANE"));
    getFederationService().save(new Federation("HAI", "HAITI ", "HAITI"));
    getFederationService().save(
        new Federation("HKG", "HONG-KONG, CHINA", "HONG-KONG, CHINE"));
    getFederationService().save(
        new Federation("HON", "HONDURAS ", "HONDURAS"));
    getFederationService()
        .save(new Federation("HUN", "HUNGARY", "HONGRIE"));
    getFederationService().save(
        new Federation("INA", "INDONESIA", "INDONESIE"));
    getFederationService().save(new Federation("IND", "INDIA ", "INDE"));
    getFederationService()
        .save(new Federation("IRL", "IRELAND", "IRLANDE"));
    getFederationService().save(
        new Federation("IRI", "ISLAMIC REPUBLIC OF IRAN ",
            "REPUBLIQUE ISLAMIQUE D'IRAN"));
    getFederationService().save(new Federation("IRQ", "IRAQ", "IRAQ"));
    getFederationService().save(new Federation("ISR", "ISRAEL ", "ISRAEL"));
    getFederationService().save(
        new Federation("ISV", "VIRGIN ISLANDS", "ILES VIERGES"));
    getFederationService().save(new Federation("ITA", "ITALY ", "ITALIE"));
    getFederationService().save(
        new Federation("JAM", "JAMAICA ", "JAMAIQUE"));
    getFederationService().save(
        new Federation("JOR", "JORDAN ", "JORDANIE"));
    getFederationService().save(new Federation("JPN", "JAPAN", "JAPON"));
    getFederationService().save(
        new Federation("KAZ", "KAZAKHSTAN ", "KAZAKHSTAN"));
    getFederationService().save(new Federation("KEN", "KENYA", "KENYA"));
    getFederationService().save(
        new Federation("KGZ", "KYRGYZSTAN ", "KIRGHIZISTAN"));
    getFederationService().save(
        new Federation("KOR", "REPUBLIC OF KOREA",
            "REPUBLIQUE DE COREE"));
    getFederationService().save(
        new Federation("KSA", "SAUDI ARABIA ", "ARABIE SAOUDITE"));
    getFederationService().save(new Federation("KUW", "KUWEIT ", "KOWEIT"));
    getFederationService().save(
        new Federation("LAO", "LAO PEOPLE’S DEMOCRATIC REPUBLIC",
            "REPUBLIQUE POPULAIRE DEMOCRATIQUE LAO"));
    getFederationService().save(
        new Federation("LAT", "LATVIA ", "LETTONIE"));
    getFederationService().save(
        new Federation("LBA", "LIBYAN ARAB JAMAHIRIYA ",
            "JAMAHIRIYA ARABE LIBYENNE"));
    getFederationService().save(
        new Federation("LCA", "SAINT LUCIA", "SAINTE-LUCIE"));
    getFederationService().save(new Federation("LIB", "LEBANO", "LIBAN"));
    getFederationService().save(
        new Federation("LIE", "LIECHTENSTEIN", "LIECHTENSTEIN"));
    getFederationService().save(
        new Federation("LTU", "LITHUANIA", "LITUANIE"));
    getFederationService().save(
        new Federation("LUX", "LUXEMBOURG", "LUXEMBOURG"));
    getFederationService().save(
        new Federation("MAC", "MACAO, CHINA ", "MACAO, CHINE"));
    getFederationService().save(
        new Federation("MAD", "MADAGASCAR ", "MADAGASCAR"));
    getFederationService().save(new Federation("MAR", "MOROCCO ", "MAROC"));
    getFederationService().save(
        new Federation("MAS", "MALAYSIA ", "MALAISIE"));
    getFederationService().save(new Federation("MAW", "MALAWI", "MALAWI"));
    getFederationService().save(
        new Federation("MDA", "REPUBLIC OF MOLDOVA ",
            "REPUBLIQUE DE MOLDOVA"));
    getFederationService().save(new Federation("MEX", "MEXICO", "MEXIQUE"));
    getFederationService().save(
        new Federation("MGL", "MONGOLIA", "MONGOLIE"));
    getFederationService().save(
        new Federation("MKD", "FORMER YUGOSLAV REPUBLIC OF MACEDONIA",
            "EX-REPUBLIQUE YOUGOSLAVE DE MACEDOINE"));
    getFederationService().save(new Federation("MLI", "MALI", "MALI"));
    getFederationService().save(new Federation("MLT", "MALTA", "MALTE"));
    getFederationService().save(
        new Federation("MNE", "MONTENEGRO", "MONTENEGRO"));
    getFederationService().save(new Federation("MON", "MONACO", "MONACO"));
    getFederationService().save(
        new Federation("MRI", "MAURITIUS", "MAURICE"));
    getFederationService()
        .save(new Federation("MYA", "MYANMAR", "MYANMAR"));
    getFederationService().save(
        new Federation("NAM", "NAMIBIA ", "NAMIBIE"));
    getFederationService().save(
        new Federation("NCA", "NICARAGUA", "NICARAGUA"));
    getFederationService().save(
        new Federation("NED", "NETHERLANDS", "PAYS-BAS"));
    getFederationService().save(new Federation("NEP", "NEPAL", "NEPAL"));
    getFederationService()
        .save(new Federation("NGR", "NIGERIA", "NIGERIA"));
    getFederationService().save(new Federation("NIG", "NIGER", "NIGER"));
    getFederationService().save(new Federation("NOR", "NORWAY", "NORVEGE"));
    getFederationService().save(
        new Federation("NZL", "NEW-ZEALAND", "NOUVELLE-ZELANDE"));
    getFederationService().save(new Federation("OMA", "OMAN ", "OMAN"));
    getFederationService().save(
        new Federation("PAK", "PAKISTAN", "PAKISTAN"));
    getFederationService().save(new Federation("PAN", "PANAMA", "PANAMA"));
    getFederationService().save(
        new Federation("PAR", "PARAGUAY", "PARAGUAY"));
    getFederationService().save(new Federation("PER", "PERU", "PEROU"));
    getFederationService().save(
        new Federation("PHI", "PHILIPPINES", "PHILIPPINES"));
    getFederationService().save(new Federation("POL", "POLAND", "POLOGNE"));
    getFederationService().save(
        new Federation("POR", "PORTUGAL", "PORTUGAL"));
    getFederationService().save(
        new Federation("PRK", "DEMOCRATIC PEOPLE’S REPUBLIC OF KOREA ",
            "REPUBLIQUE POPULAIRE DEMOCRATIQUE DE COREE"));
    getFederationService().save(
        new Federation("PUR", "PUERTO RICO", "PORTO RICO"));
    getFederationService().save(new Federation("QAT", "QATAR ", "QATAR"));
    getFederationService().save(
        new Federation("ROU", "ROMANIA", "ROUMANIE"));
    getFederationService().save(
        new Federation("RSA", "SOUTH AFRICA", "AFRIQUE DU SUD"));
    getFederationService().save(
        new Federation("RUS", "RUSSIAN FEDERATION",
            "FEDERATION DE RUSSIE"));
    getFederationService().save(new Federation("RWA", "RWANDA", "RWANDA"));
    getFederationService()
        .save(new Federation("SEN", "SENEGAL", "SENEGAL"));
    getFederationService().save(
        new Federation("SEY", "SEYCHELLES", "SEYCHELLES"));
    getFederationService().save(
        new Federation("SIN", "SINGAPORE", "SINGAPOUR"));
    getFederationService().save(
        new Federation("SKN", "SAINT KITTS AND NEVIS",
            "SAINT-KITTS-ET-NEVIS"));
    getFederationService().save(
        new Federation("SLE", "SIERRA LEONE", "SIERRA LEONE"));
    getFederationService().save(
        new Federation("SLO", "SLOVENIA", "SLOVENIE"));
    getFederationService().save(
        new Federation("SMR", "SAN MARINO", "SAINT-MARIN"));
    getFederationService().save(new Federation("SRB", "SERBIA", "SERBIE"));
    getFederationService().save(
        new Federation("SRI", "SRI LANKA", "SRI LANKA"));
    getFederationService().save(new Federation("SUD", "SUDAN", "SOUDAN"));
    getFederationService().save(
        new Federation("SUI", "SWITZERLAND", "SUISSE"));
    getFederationService().save(
        new Federation("SUR", "SURINAME", "SURINAME"));
    getFederationService().save(
        new Federation("SVK", "SLOVAKIA", "SLOVAQUIE"));
    getFederationService().save(new Federation("SWE", "SWEDEN", "SUEDE"));
    getFederationService().save(
        new Federation("SYR", "SYRIAN ARAB REPUBLIC",
            "REPUBLIQUE ARABE SYRIENNE"));
    getFederationService().save(
        new Federation("THA", "THAILAND ", "THAILANDE "));
    getFederationService().save(
        new Federation("TKM", "TURKMENISTAN", "TURKMENISTAN"));
    getFederationService().save(
        new Federation("TLS", "TIMOR-LESTE", "TIMOR-LESTE"));
    getFederationService().save(new Federation("TOG", "TOGO", "TOGO"));
    getFederationService().save(
        new Federation("TPE", "CHINESE TAIPEI", "CHINESE TAIPEI"));
    getFederationService().save(
        new Federation("TRI", "TRINIDAD AND TOBAGO",
            "TRINITE-ET-TOBAGO"));
    getFederationService()
        .save(new Federation("TUN", "TUNISIA", "TUNISIE"));
    getFederationService().save(new Federation("TUR", "TURKEY", "TURQUIE"));
    getFederationService().save(
        new Federation("UAE", "UNITED ARAB EMIRATES ",
            "EMIRATS ARABES UNIS"));
    getFederationService().save(new Federation("UGA", "UGANDA", "OUGANDA"));
    getFederationService()
        .save(new Federation("UKR", "UKRAINE", "UKRAINE"));
    getFederationService()
        .save(new Federation("URU", "URUGUAY", "URUGUAY"));
    getFederationService().save(
        new Federation("USA", "UNITED STATES OF AMERICA",
            "ETATS-UNIS D'AMERIQUE"));
    getFederationService().save(
        new Federation("UZB", "UZBEKISTAN", "OUZBEKISTAN"));
    getFederationService().save(
        new Federation("VEN", "VENEZUELA", "VENEZUELA"));
    getFederationService()
        .save(new Federation("VIE", "VIETNAM", "VIETNAM"));
    getFederationService().save(
        new Federation("VIN", "SAINT VINCENT AND THE GRENADINES",
            "SAINT-VINCENT-ET-LES-GRENADINES"));
    getFederationService().save(new Federation("YEM", "YEMEN", "YEMEN"));
    getFederationService().save(new Federation("ZAM", "ZAMBIA", "ZAMBIE"));
    getFederationService().save(
        new Federation("ZIM", "ZIMBABWE", "ZIMBABWE"));

  }
View Full Code Here

Examples of org.xrace.model.Federation

  private void createTestProvince()
  {
    /*
     * Provinces du Canada
     */
    final Federation federationCanada = getFederationService().findByCode(
        "CAN");
    getProvinceService().save(
        new Province(federationCanada, "AB", "Alberta", "Alberta"));
    getProvinceService().save(
        new Province(federationCanada, "BC", "Colombie-Britannique",
            "British Columbia"));
    getProvinceService().save(
        new Province(federationCanada, "MB", "Manitoba", "Manitoba"));
    getProvinceService().save(
        new Province(federationCanada, "NB", "Nouveau-Brunswick",
            "New Brunswick"));
    getProvinceService().save(
        new Province(federationCanada, "NT", "Terre-Neuve-et-Labrador",
            "Newfoundland and Labrador"));
    getProvinceService().save(
        new Province(federationCanada, "NS", "Nouvelle-Écosse",
            "Nova Scotia"));
    getProvinceService().save(
        new Province(federationCanada, "NU", "Nunavut", "Nunavut"));
    getProvinceService().save(
        new Province(federationCanada, "ON", "Ontario", "Ontario"));
    getProvinceService().save(
        new Province(federationCanada, "PEI", "Île-du-Prince-Édouard",
            "Prince Edward Island"));
    getProvinceService().save(
        new Province(federationCanada, "QB", "Québec", "Quebec"));
    getProvinceService().save(
        new Province(federationCanada, "SK", "Saskatchewan",
            "Saskatchewan"));
    getProvinceService().save(
        new Province(federationCanada, "YK", "Yukon", "Yukon"));

    /*
     * États des USA
     */
    final Federation federationUSA = getFederationService().findByCode(
        "USA");
    getProvinceService().save(
        new Province(federationUSA, "AK", "Alaska", "Alaska"));
    getProvinceService().save(
        new Province(federationUSA, "AZ", "Arizona", "Arizona"));
View Full Code Here

Examples of org.xrace.model.Federation

        personneJDoe).size());
  }

  public void testSaveAvecNouvellePersonne() throws Exception
  {
    Federation federation = getFederationService().findByCode("FRA");
    Personne personne = new Personne("Morane", "Bob", "783 De la rue",
        "Boport", "H1J 3T7", "997-5454", new GregorianCalendar(1970, 0,
            1).getTime(), "H", null, federation, federation);
    final Inscription inscription = new Inscription();
    inscription.setPersonne(personne);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.