Internal Website Search

101-150 of 200 results

Merge with Parent/Child entities not possible

; entityManager.getTransaction(). begin ();   entityManager.persist(parentEntity);   parentEntity ... .getTransaction(). begin ();   ParentEntity parentEntityNew = new ParentEntity();  

Rollback after commit fail

Hi, I have question regarding transaction management in ObjectDB. Consider following scenario: Thread 1: try{ EntityManager em = emf.createEntityManager(); em.getTransaction. begin () persist object1 ... { EntityManager em = emf.createEntityManager(); em.getTransaction. begin () persist object2 persist

failure to enforce NOT NULL for java.lang.String

); //try { tr. begin (); em.persist(r); tr.commit(); //} //catch (...) { } em.close(); emf.close ... .createEntityManager();         em.getTransaction(). begin ();  

IN expression in a Criteria Query

.createEntityManager();         em.getTransaction(). begin ();     ... .createEntityManager();         em.getTransaction(). begin ();  

Unable to persist TreeMap

;     em.getTransaction(). begin ();        ... ;    " value: " + entry.getValue()); } //for em.getTransaction(). begin (); em.persist

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans. begin (); create typeC o; em.persist(o); trans.commit();} 2, for 1 to 30 {p = em.find(typeC.class, i); print(p)} So simple a test ... . My codes, again, are similar to these: 1. trans = em.getTransaction(); trans. begin (); create typeC o; em

Persisting collection where members are subclasses

"); System.err.println(f.getChildren()); entityManager.getTransaction(). begin (); entryDao.makePersistent(f ... ;  em.getTransaction(). begin ();         em.persist(f);  

multiple LEFT JOINs do not work as expected

();         em.getTransaction(). begin ();       ... ( "objectdb:test.tmp;drop"); EntityManager em = emf.createEntityManager(); em.getTransaction(). begin

OutofMemory error with Object DB 2.0

PersistentManager is used to begin the transaction. With objectdb 2.x do we need to close the  ... ;         transaction. begin ();      

java.lang.UnsupportedOperationException

(); em.getTransaction(). begin (); for (Object entity : results)     em.remove(entity ... (). begin (); em.unwrap(PersistenceManager.class).newQuery(License.class).deletePersistentAll(); em

Updating existing persistence entries

are identified automatically. Of course, you have to begin and commit a transaction (when SAVE ... you very much, for the explanation. I managed to get it working with beginning a transaction and committing

Entity Update - Is the documentation up to date?

transaction.  If I subsequently begin and commit a transaction, all my changes seem to be merged ... been modifying managed entities from outside an active transaction.  If I subsequently begin

@Unique member combination not working

;       em.getTransaction(). begin ();        ... .getTransaction(). begin ();              

Cannot catch a PersistenceException and continue the transaction

but those don't work for me. Begin a new (nested) transaction in another method that will be rolled back instead of the first one- doesn't work. I got a message that it couldn't begin a new transaction

JOD problems regarding detachCopy()

(); try { pm.currentTransaction(). begin (); Query q=pm.newQuery(Boat.class); Collection res=(Collection)q ... = pmf.getPersistenceManager(); try { pm.currentTransaction(). begin (); pm.makePersistent(b_copy); pm

Fantom

") .createEntityManager() .with { transaction. begin () persist(new Address(street:"Groovy")) transaction.commit ... .with { getTransaction. begin persist(Address {street = "Fantom"}) getTransaction.commit } } } @Entity class

Not able to update records

surrounding your executeUpdate with em.getTransaction(). begin () to start the transaction and em ... _CLIENTSERVER_MODE); EntityManager em = emFactory.createEntityManager(); em.getTransaction(). begin

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

;      em.getTransaction(). begin ();         em ... : em.getTransaction(). begin (); B b = new B(1); em.persist(b); em.persist(new A(new AId(b)));  

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc-check") vs. generic classes with interfaces: detailed investigation

= emf.createEntityManager();         em.getTransaction(). begin ... (). begin (); em.persist(project); //rely on Cascade all on ownedElements. The reported error

PostUpdate collection null

.getTransaction(). begin ();         MyEntity e = new MyEntity(1);   ... ;      em.getTransaction(). begin ();       

Like fails if both underscore and percent are used

.createEntityManager(); em.getMetamodel().entity(StringHolder.class); em.getTransaction(). begin ... ()); //DB is empty em.getTransaction(). begin (); em.persist(entry); em.getTransaction().commit

ObjectDB Enincompatible with Quarkus?

schema: "__odbVersionCrc" in "Film" must not begin with "__", which is reserved by GraphQL introspection ... "Film" must not begin with "__", which is reserved by GraphQL introspection.     

pesimistic Lock semantic

(); pm1.currentTransaction().setOptimistic(false); pm1.currentTransaction(). begin (); long numOfPictures ... .currentTransaction().setOptimistic(false); pm2.currentTransaction(). begin (); Picture picture2

Should I be able to persist a JFrame (or gui components in general)?

.getTransaction(). begin (); contacts.add(a); em.getTransaction().commit ... : System.out.println(a.pJTextField1.getText()); //did have text when ran em.getTransaction(). begin (); em

Field not persisted in abstract class with two level of nesting

;     em.getTransaction(). begin ();         TZ1 ... ();         em.getTransaction(). begin ();      

Multi-thread access to single EM's entities

;      em.getTransaction(). begin ();       ... .getTransaction().commit();         em.getTransaction(). begin ();  

remove & persist in same transaction => Attempt to reuse an existing primary key value

(). begin (); EntityA entity = new EntityA(1); em.persist(entity); em.getTransaction().commit(); System.out.println("load and remove"); em.getTransaction(). begin (); EntityA persitedEntity = em.find

"where in" query

;            em.getTransaction(). begin ();    ... ;       em.getTransaction(). begin ();         for (int i = 0; i

client server mod of communication

; EntityManager em = emf.createEntityManager();     em.getTransaction(). begin ();   gtr = new ... .createEntityManager();             em.getTransaction(). begin ();  

Cannot sort descending, when ordering by caluculated float in a method

;            em.getTransaction(). begin ();   ... .getTransaction(). begin (); Invoice i1 = new Invoice(); i1.getItemList().add(new InvoiceItem(1, 2, i1

@Transient

.getTransaction(). begin ();     odb.persist(agency);     odb

problem when primary key value is zero

;      em.getTransaction(). begin ();        

Problem with Criteria Querys

.createEntityManager();         em.getTransaction(). begin ();         for (double i=0.0; i

Filename.odb$ Persisting Issue

) and begin closing the EM's and EMF, no? DragonRulerX Jared Hinze If emf

Embedded List

;       em.getTransaction(). begin ();      

CriteriaQuery .where() for multiple conditions

person; try { em.getTransaction(). begin (); CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder

Bug: ClassCastException by retrieval

  trans. begin ();   tNode tn = new tNode();   tn.setsData("HelloWorld2");   em

Multiple Collection Fields not update correctly

.getTransaction(). begin ();             em.merge(myEntity

Immediately retrieve unique id

The beginning of my "Sample" class looks like: @Entity @SequenceGenerator(name = "sampleSeqGenerator", initialValue = 1, allocationSize = 100) public class Sample implements Serializable { private static final long serialVersionUID = 1L; private String sampleName; @GeneratedValue(strategy

problem with lazy loading - unittest project attached

me to call entityManager.getTransaction(). begin ()/commit() and i also can not set the isolation to READ

Sometimes the ObjectDB throws an internal expeption if a persist() was executed

was mistakenly executed on a test machine without ObjectDB lizense. At the beginning of the test ... that we don't see the exception, because at the beginning of our application we add for all entity classes

Inverse OneToMany Mapping and EmbeddedId

) . createEntityManager ( ) ;          em . getTransaction ( ) . begin ... ( ) . begin ( ) ;          em . persist ( new C ( new CId ( ab , 1 ) , 1

Issues with JDO Casting & Full Qualified Names

.createEntityManager();   em.getTransaction(). begin ();   MyEntity entity = new MyEntity();   entity ... ;      em.getTransaction(). begin ();        

preUpdate-methods are called when there is no change

Dear Support Team, we ran into some difficulties with a database. When fetching a entity using the EntityManager and afterwards calling "iterator().next()" a transaction begin /commit will end up in ... (). begin (); connection.getTransaction().commit(); // -- will result in a call of @PreUpdate annotated

Schema-Update: Rename superclass and remove one subclass

(); // // Persist an entity em.getTransaction(). begin (); ChildClassA entity1 = new ChildClassA(); entity1.kind ... ().entity(RenamedSuperClass.class); em.getTransaction(). begin (); // do something ChildClassA entityWithID1

Issue with cascade delete & add/remove

;     em.getTransaction(). begin ();         em ... ;     em.getTransaction(). begin ();        

Merge throw exception "Attempt to reuse an existing primary key value"

;  final int Id = 0;         em.getTransaction(). begin ();   ... (). begin ();         em.merge(new MyEntity(Id));    

"is not null" queries not working with index

;       em.getTransaction(). begin ();         for (int i = 0; i = 0 or p.bar = 0 or p.bar

ArrayIndexOutOfBoundsException on flush

= _emf.createEntityManager(); em.getTransaction(). begin (); try { Query query = em.createQuery("DELETE

Strange Error with Criteria API and Sorting

  em.getTransaction(). begin ();   OtherEntity o1 = new OtherEntity("Name C");