Package com.apress.prospring3.springblog.service

Examples of com.apress.prospring3.springblog.service.EntryService.save()


    entry.setCreatedBy("clarence");
    DateTime currentDateTime = new DateTime();
    entry.setCreatedDate(currentDateTime);
    entry.setLastModifiedBy("clarence");
    entry.setLastModifiedDate(currentDateTime);
    entryService.save(entry);
    System.out.println("New entry insert successfully");
   
        entries = entryService.findByCategoryId("Spring");
   
    for (Entry entryTemp: entries) {
View Full Code Here


    System.out.println("Updating entry with id 1");
    entry = entryService.findById(1l);
    entry.setSubject("Updated entry subject crap");
    currentDateTime = new DateTime();
    entry.setLastModifiedDate(currentDateTime);
    entryService.save(entry);
    System.out.println("Entry updated successfully");
   
        entries = entryService.findByCategoryId("Spring");
   
    for (Entry entryTemp: entries) {
View Full Code Here

    //entry.setSubject("Testing entry clarence");
    entry.setSubject("Testing");
    entry.setBody("Testing entry clarence");
    entry.setPostDate(new DateTime());
    entry.setCategoryId("Spring");
    entryService.save(entry);
    System.out.println("New entry insert successfully");
   
        entries = entryService.findByCategoryId("Spring");
   
    for (Entry entryTemp: entries) {
View Full Code Here

   
    // Update entry
    System.out.println("Updating entry with id 1");
    entry = entryService.findById(1l);
    entry.setSubject("Updated entry subject crap");
    entryService.save(entry);
    System.out.println("Entry updated successfully");
   
        entries = entryService.findByCategoryId("Spring");
   
    for (Entry entryTemp: entries) {
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.