Package com.pt.domain

Examples of com.pt.domain.Person


      if (isEmpty(encodedIcon)) {
        model.addAttribute("errorMessage", "Name, your thoughts and a picture are required.");
            return show("write");
      }
     
      Person owner = new Person();
      owner.setName(name);
      dataService.createPerson(owner);
     
      Thought thought = new Thought();
      thought.setCreatedOn(Calendar.getInstance().getTime());
      thought.setThought(new Text(userThought));
View Full Code Here


      if (isEmpty(encodedIcon) && thought.getThumbnail() == null) {
        model.addAttribute("errorMessage", "Name, your thoughts and a picture are required.");
            return show("write");
      }
     
      Person owner = thought.getOwner();
      if (!owner.getName().equals(name)) {
        owner.setName(name);
        dataService.updatePerson(owner);
      }
     
      thought.setThought(new Text(userThought));
      thought.setOwner(owner);
View Full Code Here

TOP

Related Classes of com.pt.domain.Person

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.