UserProjectActivityPrice price1 = new UserProjectActivityPrice();
Calendar cal = Calendar.getInstance();
cal.set(Calendar.YEAR, 2006);
cal.set(Calendar.MONTH, Calendar.JANUARY);
cal.set(Calendar.DAY_OF_MONTH, 1);
DayPeriod p = new DayPeriod();
p.setBegin(cal.getTime());
cal.set(Calendar.YEAR, 2007);
cal.set(Calendar.MONTH, Calendar.DECEMBER);
cal.set(Calendar.DAY_OF_MONTH, 31);
p.setEnd(cal.getTime());
price1.setPeriod(p);
price1.setPrice(PRICE1);
price1.setUserProjectActivity(userProjectActivity);
UserProjectActivityPrice price2 = new UserProjectActivityPrice();
cal = Calendar.getInstance();
cal.set(Calendar.YEAR, 2008);
cal.set(Calendar.MONTH, Calendar.JANUARY);
cal.set(Calendar.DAY_OF_MONTH, 1);
p = new DayPeriod();
p.setBegin(cal.getTime());
cal.set(Calendar.YEAR, 2009);
cal.set(Calendar.MONTH, Calendar.DECEMBER);
cal.set(Calendar.DAY_OF_MONTH, 31);
p.setEnd(cal.getTime());
price2.setPeriod(p);
price2.setPrice(PRICE2);
price2.setUserProjectActivity(userProjectActivity);
UserProjectActivityPrice price3 = new UserProjectActivityPrice();
cal = Calendar.getInstance();
cal.set(Calendar.YEAR, 2010);
cal.set(Calendar.MONTH, Calendar.JANUARY);
cal.set(Calendar.DAY_OF_MONTH, 1);
p = new DayPeriod();
p.setBegin(cal.getTime());
cal.set(Calendar.YEAR, 2011);
cal.set(Calendar.MONTH, Calendar.DECEMBER);
cal.set(Calendar.DAY_OF_MONTH, 31);
p.setEnd(cal.getTime());
price3.setPeriod(p);
price3.setPrice(PRICE3);
price3.setUserProjectActivity(userProjectActivity);
prices.add(price1);