[jboss-user] [JBoss Seam] - Re: Fundamental question about em.persist

vanyatka do-not-reply at jboss.com
Thu Dec 13 09:59:06 EST 2007

I have to come back to this issue once again. There must be some easy explanation. 

The following code produces "Test Card" in the DB. Why the last change doesn't get persisted? It is a part of the transaction, after all.

  | 	@Transactional
  | 	public void init() {
  | 		Card card = new Card();
  | 		card.setName("Test Card");
  | 		entityManager.persist(card);
  | 		card.setName("The final name");
  | 	}

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112593#4112593

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112593

More information about the jboss-user mailing list