public static void main(String[] args) {
		EntityManagerFactory entityManagerFactory= Persistence.createEntityManagerFactory("introducaojpa_pu");
		
		EntityManager entityManager = entityManagerFactory.createEntityManager();
		
		Scanner scanner = new Scanner(System.in);
		Banda banda;
		
		for(int i = 0;i<2;i++ ){
		banda = new Banda();
		
		System.out.println("Nome da banda");
		banda.setNome(scanner.nextLine());
				
		entityManager.getTransaction().begin();
		entityManager.persist(banda);
		entityManager.getTransaction().commit();
		}
		entityManager.close();
		
		entityManagerFactory.close();
		// TODO Auto-generated method stub

	}