Package ro.bjug.todo.api

Examples of ro.bjug.todo.api.TodoBuilder


    String id = UUID.randomUUID().toString();
    while (dao.exists(id)) {
      id = UUID.randomUUID().toString();
    }

    final TodoBuilder builder = Todo.newBuilder().id(id).created(new Date());
    if (email != null) {
      builder.email(email);
    }
    dao.insert(builder.build());

    return Response.created(URI.create(id)).build();
  }
View Full Code Here

TOP

Related Classes of ro.bjug.todo.api.TodoBuilder

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.