/* * (c) Copyright 2005-2012 JAXIO, www.jaxio.com * Source code generated by Celerio, a Jaxio product * Want to use Celerio within your company? email us at info@jaxio.com * Follow us on twitter: @springfuse * Template pack-backend-sd:src/test/java/repository/ModelGenerator.e.vm.java */ package com.company.demo.repository; import org.springframework.stereotype.Service; import com.company.demo.domain.Book; import com.company.demo.util.ValueGenerator; /** * Helper class to create transient entities instance for testing purposes. * Simple properties are pre-filled with random values. */ @Service public class BookGenerator { /** * Returns a new Book instance filled with random values. */ public Book getBook() { Book book = new Book(); // simple attributes follows book.setTitle("a"); book.setNumberOfPages(1); return book; } }