Package name.pehl.karaka.server.client.entity

Examples of name.pehl.karaka.server.client.entity.Client


    public List<Client> produceClients()
    {
        List<Client> clients = new ArrayList<Client>();
        for (String name : names)
        {
            Client client = new Client(name, loremIpsum.randomWords(3));
            clients.add(client);
        }
        return clients;
    }
View Full Code Here


        // Clients
        List<Client> savedClients = new ArrayList<Client>();
        for (Client client : clients)
        {
            Client savedClient = clientRepository.save(client);
            savedClients.add(savedClient);
            logger.info("Persisted {}", client);
        }

        // Projects
        List<Project> savedProjects = new ArrayList<Project>();
        for (Project project : projects)
        {
            Client savedClient = savedClients.get(random.nextInt(clients.size()));
            project.setClient(Ref.create(savedClient));
            Project savedProject = projectRepository.save(project);
            savedProjects.add(savedProject);
            logger.info("Persisted {}", project);
        }
View Full Code Here

        {
            if (model.getClient().isTransient())
            {
                name.pehl.karaka.server.client.entity.Client newClientEntity = clientConverter.fromModel(model
                        .getClient());
                Client savedClient = clientRepository.save(newClientEntity);
                entity.setClient(Ref.create(savedClient));
            }
            else
            {
                clientKey = Key.create(model.getClient().getId());
View Full Code Here

TOP

Related Classes of name.pehl.karaka.server.client.entity.Client

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.