Skip to content

Commit

Permalink
Alterando dados das sessões.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandreaquiles committed Feb 27, 2014
1 parent c4524a7 commit 7d37c30
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -45,7 +45,7 @@ public static void main(String[] args) {
sessao.setInicio(new DateTime().plusDays(7+i));
sessao.setDuracaoEmMinutos(60 * 3);
sessao.setTotalIngressos(100);
sessao.setIngressosReservados(i == 0 ? 100 : 10 - i);
sessao.setIngressosReservados(i < 5 ? 100 - i : 0);
sessao.setPreco(new BigDecimal("50"));
manager.persist(sessao);
}
Expand Down

0 comments on commit 7d37c30

Please sign in to comment.