About begin

141-150 of 200Refresh
Forum
1

Unable to persist TreeMap

.getTransaction().begin();         em.persist(p);         em.getTransaction().commit ... .getKey() +       " value: " + entry.getValue()); } //for em.getTransaction().begin(); em
Forum
1

Unexpected behaviour upon update. Bug?

(); em.getTransaction().begin(); Update simple = new Update(); simple.i = 0 ... (); simple.v = 4; em.getTransaction().begin(); simple = em.createQuery("SELECT s FROM
Forum
1

Unique contraint with 2 members

");         EntityManager em = emf.createEntityManager();                 em.getTransaction().begin();         em.persist(new MyEntity());         em.getTransaction().commit();         em.getTransaction().begin
Issue
1

UPDATE statemen crash when i put the WHERE clause.

this. EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); EntityManager updateEm ... _points); updateEm.getTransaction().begin(); updateEm.createQuery("update Record
Forum
1

Updating existing persistence entries

within an active transaction the changes are identified automatically. Of course, you have to begin and commit ... you very much, for the explanation. I managed to get it working with beginning a transaction
Forum
1

Using the wrong class to access a database

(); } static void create(EntityManager em) { em.getTransaction().begin(); for (int i = 0; i < 1000 ... = query.getResultList(); em.getTransaction().begin(); for (Point p : results) { if (p
Forum
1

Cascading merge() leading to "Attempt to persist a reference to a non managed instance" error

();     tx.begin();     em.merge(new Child(new Parent("Joe")));     em.merge(new Child(new Parent("Tim
Forum
1

ClassCastException: cannot be cast to com.objectdb.spi.TrackableUserType

.currentTransaction() try { transaction.begin() pm
Forum
1

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

.getTransaction().begin(); Container container = Container.getInstance(em); container.generateMapItems(1, em
Forum
1

CriteriaQuery .where() for multiple conditions

().begin(); CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder