// Path: quickstart-geo-app/src/main/java/com/springsource/petclinic/domain/Owner.java
// @RooJavaBean
// @RooToString
// @RooJpaActiveRecord
// @GvNIXJpaAudit
// @GvNIXEntityMapLayer
// public class Owner extends AbstractPerson {
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
//     private Set<Pet> pets = new HashSet<Pet>();
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
//     private Set<Vet> vets = new HashSet<Vet>();
// 
//     @Type(type = "org.hibernate.spatial.GeometryType")
//     private Point location;
// 
//     @Type(type = "org.hibernate.spatial.GeometryType")
//     private LineString distance;
// 
//     @Type(type = "org.hibernate.spatial.GeometryType")
//     private Polygon area;
// }
// 
// Path: quickstart-repository-app/src/main/java/com/springsource/petclinic/domain/Pet.java
// @RooJavaBean
// @RooToString
// @RooJpaEntity(sequenceName = "PET_SEQ")
// public class Pet {
// 
//     /**
//      */
//     @NotNull
//     private boolean sendReminders;
// 
//     /**
//      */
//     @NotNull
//     @Size(min = 1)
//     private String name;
// 
//     /**
//      */
//     @NotNull
//     @Min(0L)
//     private Float weight;
// 
//     /**
//      */
//     @ManyToOne
//     private Owner owner;
// 
//     /**
//      */
//     @NotNull
//     @Enumerated
//     private PetType type;
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "pet")
//     private Set<Visit> visits = new HashSet<Visit>();
// }
// 
// Path: quickstart-geo-app/src/main/java/com/springsource/petclinic/domain/Vet.java
// @RooJavaBean
// @RooToString
// @RooJpaActiveRecord
// @GvNIXJpaAudit
// public class Vet extends AbstractPerson {
// 
//     /**
//      */
//     @NotNull
//     @Past
//     @Temporal(TemporalType.TIMESTAMP)
//     @DateTimeFormat(style = "M-")
//     private Calendar employedSince;
// 
//     /**
//      */
//     @Enumerated
//     private Specialty specialty;
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "vet")
//     private Set<Visit> visits = new HashSet<Visit>();
// 
//     /**
//      */
//     @ManyToOne
//     private Owner owner;
// }


import org.springframework.core.convert.converter.Converter;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.support.FormattingConversionServiceFactoryBean;
import org.springframework.roo.addon.web.mvc.controller.converter.RooConversionService;
import com.springsource.petclinic.domain.Owner;
import com.springsource.petclinic.domain.Pet;
import com.springsource.petclinic.domain.Vet;
package com.springsource.petclinic.web;



/**
 * A central place to register application converters and formatters. 
 */
@RooConversionService
public class ApplicationConversionServiceFactoryBean extends FormattingConversionServiceFactoryBean {

	@Override
	protected void installFormatters(FormatterRegistry registry) {
		super.installFormatters(registry);
		// Register application converters and formatters
	}


	    public Converter<Pet, String> getPetToStringConverter() {
	        return new org.springframework.core.convert.converter.Converter<com.springsource.petclinic.domain.Pet, java.lang.String>() {
	            public String convert(Pet pet) {
	                return new StringBuilder().append(pet.getName()).toString();
	            }
	        };
	    }

	    public Converter<Vet, String> getVetToStringConverter() {
	        return new org.springframework.core.convert.converter.Converter<com.springsource.petclinic.domain.Vet, java.lang.String>() {
	            public String convert(Vet vet) {
	                return new StringBuilder().append(vet.getFirstName()).append(' ').append(vet.getLastName()).toString();
	            }
	        };
	    }

// Path: quickstart-geo-app/src/main/java/com/springsource/petclinic/domain/Owner.java
// @RooJavaBean
// @RooToString
// @RooJpaActiveRecord
// @GvNIXJpaAudit
// @GvNIXEntityMapLayer
// public class Owner extends AbstractPerson {
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
//     private Set<Pet> pets = new HashSet<Pet>();
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
//     private Set<Vet> vets = new HashSet<Vet>();
// 
//     @Type(type = "org.hibernate.spatial.GeometryType")
//     private Point location;
// 
//     @Type(type = "org.hibernate.spatial.GeometryType")
//     private LineString distance;
// 
//     @Type(type = "org.hibernate.spatial.GeometryType")
//     private Polygon area;
// }
// 
// Path: quickstart-repository-app/src/main/java/com/springsource/petclinic/domain/Pet.java
// @RooJavaBean
// @RooToString
// @RooJpaEntity(sequenceName = "PET_SEQ")
// public class Pet {
// 
//     /**
//      */
//     @NotNull
//     private boolean sendReminders;
// 
//     /**
//      */
//     @NotNull
//     @Size(min = 1)
//     private String name;
// 
//     /**
//      */
//     @NotNull
//     @Min(0L)
//     private Float weight;
// 
//     /**
//      */
//     @ManyToOne
//     private Owner owner;
// 
//     /**
//      */
//     @NotNull
//     @Enumerated
//     private PetType type;
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "pet")
//     private Set<Visit> visits = new HashSet<Visit>();
// }
// 
// Path: quickstart-geo-app/src/main/java/com/springsource/petclinic/domain/Vet.java
// @RooJavaBean
// @RooToString
// @RooJpaActiveRecord
// @GvNIXJpaAudit
// public class Vet extends AbstractPerson {
// 
//     /**
//      */
//     @NotNull
//     @Past
//     @Temporal(TemporalType.TIMESTAMP)
//     @DateTimeFormat(style = "M-")
//     private Calendar employedSince;
// 
//     /**
//      */
//     @Enumerated
//     private Specialty specialty;
// 
//     /**
//      */
//     @OneToMany(cascade = CascadeType.ALL, mappedBy = "vet")
//     private Set<Visit> visits = new HashSet<Visit>();
// 
//     /**
//      */
//     @ManyToOne
//     private Owner owner;
// }


// Path: quickstart-app/src/main/java/com/springsource/petclinic/web/ApplicationConversionServiceFactoryBean.java
import org.springframework.core.convert.converter.Converter;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.support.FormattingConversionServiceFactoryBean;
import org.springframework.roo.addon.web.mvc.controller.converter.RooConversionService;
import com.springsource.petclinic.domain.Owner;
import com.springsource.petclinic.domain.Pet;
import com.springsource.petclinic.domain.Vet;

package com.springsource.petclinic.web;



/**
 * A central place to register application converters and formatters. 
 */
@RooConversionService
public class ApplicationConversionServiceFactoryBean extends FormattingConversionServiceFactoryBean {

	@Override
	protected void installFormatters(FormatterRegistry registry) {
		super.installFormatters(registry);
		// Register application converters and formatters
	}


	    public Converter<Pet, String> getPetToStringConverter() {
	        return new org.springframework.core.convert.converter.Converter<com.springsource.petclinic.domain.Pet, java.lang.String>() {
	            public String convert(Pet pet) {
	                return new StringBuilder().append(pet.getName()).toString();
	            }
	        };
	    }

	    public Converter<Vet, String> getVetToStringConverter() {
	        return new org.springframework.core.convert.converter.Converter<com.springsource.petclinic.domain.Vet, java.lang.String>() {
	            public String convert(Vet vet) {
	                return new StringBuilder().append(vet.getFirstName()).append(' ').append(vet.getLastName()).toString();
	            }
	        };
	    }

	    public Converter<Owner, String> getOwnerToStringConverter() {