// Path: spanners-mvc/src/main/java/org/dontpanic/spanners/springmvc/domain/Spanner.java
// public class Spanner {
// 
//     private Long id;
//     private String name;
//     private int size;
//     private String owner;
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public int getSize() {
//         return size;
//     }
// 
//     public void setSize(int size) {
//         this.size = size;
//     }
// 
//     public String getOwner() {
//         return owner;
//     }
// 
//     public void setOwner(String owner) {
//         this.owner = owner;
//     }
// }


import org.dontpanic.spanners.springmvc.domain.Spanner;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;
package org.dontpanic.spanners.springmvc.forms;



/**
 * A form that allows editing of spanner attributes
 * User: Stevie
 * Date: 22/10/13
 */
public class SpannerForm {

    public static final String FIELD_NAME = "name";
    public static final String FIELD_SIZE = "size";

    private Long id;
    @Size(min=1, max=255)
    private String name;
    @Min(1) @Max(99)
    private int size;

    public SpannerForm() {
    }

    /**
     * Create a spanner form with values initialized to given spanner
     */
// Path: spanners-mvc/src/main/java/org/dontpanic/spanners/springmvc/domain/Spanner.java
// public class Spanner {
// 
//     private Long id;
//     private String name;
//     private int size;
//     private String owner;
// 
//     public Long getId() {
//         return id;
//     }
// 
//     public void setId(Long id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public int getSize() {
//         return size;
//     }
// 
//     public void setSize(int size) {
//         this.size = size;
//     }
// 
//     public String getOwner() {
//         return owner;
//     }
// 
//     public void setOwner(String owner) {
//         this.owner = owner;
//     }
// }


// Path: spanners-mvc/src/main/java/org/dontpanic/spanners/springmvc/forms/SpannerForm.java
import org.dontpanic.spanners.springmvc.domain.Spanner;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Size;

package org.dontpanic.spanners.springmvc.forms;



/**
 * A form that allows editing of spanner attributes
 * User: Stevie
 * Date: 22/10/13
 */
public class SpannerForm {

    public static final String FIELD_NAME = "name";
    public static final String FIELD_SIZE = "size";

    private Long id;
    @Size(min=1, max=255)
    private String name;
    @Min(1) @Max(99)
    private int size;

    public SpannerForm() {
    }

    /**
     * Create a spanner form with values initialized to given spanner
     */
    public SpannerForm(Spanner spanner) {