This commit is contained in:
Keith Donald
2008-02-28 00:06:10 +00:00
parent 0a0e15d396
commit 02f9b5f053

View File

@@ -4,15 +4,11 @@ import java.util.ArrayList;
import java.util.List;
import javax.faces.model.SelectItem;
import javax.persistence.EntityManager;
import org.springframework.stereotype.Service;
import org.springframework.webflow.samples.booking.Booking;
import org.springframework.webflow.samples.booking.Hotel;
import org.springframework.webflow.samples.booking.User;
@Service
public class FlowHelper {
public class ReferenceData {
private List<SelectItem> bedOptions;
@@ -85,10 +81,4 @@ public class FlowHelper {
return pageSizeOptions;
}
public Booking createBooking(Hotel hotel, User user, EntityManager em) {
Booking booking = new Booking(hotel, user);
em.persist(booking);
return booking;
}
}