Package com.pc.dailymile.domain

Examples of com.pc.dailymile.domain.Entry


     * @param workout
     * @param message
     * @return the id of the workout that was created
     */
    public Long addWorkout(Workout workout, String message) {
        Entry entry = new Entry();
        entry.setMessage(StringUtils.stripToEmpty(message));
        entry.setWorkout(workout);
        try {
            return addEntry(entry);
        } catch (Exception e) {
            throw new RuntimeException("Unable to add workout", e);
        }
View Full Code Here


     *
     * @param note
     * @return
     */
    public Long addNote(String note) {
        Entry noteEntry = new Entry();
        noteEntry.setMessage(note);
        try {
            return addEntry(noteEntry);
        } catch (Exception e) {
            throw new RuntimeException("Unable to add note", e);
        }
View Full Code Here

TOP

Related Classes of com.pc.dailymile.domain.Entry

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.