Package com.astech.domain

Examples of com.astech.domain.ConsulAdresse


    @Autowired
    private ConsulAdresseGenerator consulAdresseGenerator;

    @Test
    public void identityShouldBePreserved() {
        ConsulAdresse consulAdresse = consulAdresseGenerator.getConsulAdresse();

        // add it to a Set before saving (force equals/hashcode)
        Sets.newHashSet(consulAdresse);

        consulAdresseRepository.save(consulAdresse);
        entityManager.flush();

        // reload it from cache and check equality
        Integer id = consulAdresse.getId();
        assertThat(consulAdresse).isEqualTo(consulAdresseRepository.findOne(id));

        // clear cache to force reload from db
        entityManager.clear();
View Full Code Here


    /**
     * Returns a new ConsulAdresse instance filled with random values.
     */
    public ConsulAdresse getConsulAdresse() {
        ConsulAdresse consulAdresse = new ConsulAdresse();

        // primary key column must be set manually
        consulAdresse.setId(ValueGenerator.getUniqueInteger());
        // simple attributes follows
        consulAdresse.setCodePostal("a");
        consulAdresse.setNumeroVois("a");
        consulAdresse.setVois("a");
        return consulAdresse;
    }
View Full Code Here

        consulCitoyen.setNom("a");
        consulCitoyen.setPrenom("a");
        consulCitoyen.setSexe("d".getBytes());
        consulCitoyen.setDateNaissence(new Date());
        // mandatory relation
        ConsulAdresse consulAdresse = consulAdresseGenerator.getConsulAdresse();
        consulAdresseRepository.save(consulAdresse);
        consulCitoyen.setConsulAdresse(consulAdresse);
        return consulCitoyen;
    }
View Full Code Here

    }

    @Override
    public ConsulAdresse parse(String text, Locale locale) throws ParseException {
        if (isBlank(text)) {
            return new ConsulAdresse();
        }
        ConsulAdresse consulAdresse = consulAdresseRepository.findOne(new Integer(text));
        return consulAdresse != null ? consulAdresse : new ConsulAdresse();
    }
View Full Code Here

        consulCitoyen.setPrenom(getPrenom());
        consulCitoyen.setSexe(getSexe());
        consulCitoyen.setDateNaissence(getDateNaissence());
        consulCitoyen.setConsulAdresseId(getConsulAdresseId());
        if (getConsulAdresse() != null) {
            consulCitoyen.setConsulAdresse(new ConsulAdresse(getConsulAdresse().getId()));
        }
    }
View Full Code Here

TOP

Related Classes of com.astech.domain.ConsulAdresse

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.