public static void main(String[] args) {

		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext-servlet.xml");

		EventDao eventDao = (EventDao) ctx.getBean("eventDao");

		Location location = new Location();
		location.setAddress("1 high street");
		location.setName("location");

		Event event = new Event();
		event.setName("event name");
		event.setDescription("description");
		event.setLocation(location);
		event.setDate(new Timestamp(System.currentTimeMillis()));

		event = eventDao.save(event);

		System.out.println(event);
	}