Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CustomerDAO customerDAO = (CustomerDAO)ctx.getBean("customerDAO");
- VideoDAO videoDAO = (VideoDAO)ctx.getBean("videoDAO");
- RentalCategoryDAO rentalCategoryDAO =
- (RentalCategoryDAO)ctx.getBean("rentalCategoryDAO");
- List<Customer> customers = customerDAO.getCustomersOfGender("Male");
- List<RentalCategory> rentalCat =
- rentalCategoryDAO.getRentalCategoriesByName("Premium");
- VideoDetailsDAO videoDetailsDAO =
- (VideoDetailsDAO)ctx.getBean("videoDetailsDAO");
- List<VideoDetails> videoDetailsList = videoDetailsDAO.getVideoDetails();
- VideoDetails videoDetails = videoDetailsList.get(0);
- Set<Video> videos = videoDetails.getVideos();
- Video video = new Video();
- for (Video nextVideo : videos)
- {
- video = nextVideo;
- }
- videoDAO.saveVideo(video);
- Customer customer = customers.get(0);
- customer.setCredit(1000);
- rentServiceImpl.rentOutVideo(new Rental(customer, video));*/
Add Comment
Please, Sign In to add comment