ObjectDB Database Search

51-100 of 190 results

Does ObjectDB support lazy loading?

(). begin (); A a = new A(); a.list = new ArrayList (); a.list.add(new B(1)); a.list.add(new B(2)); em ... ;      em.getTransaction(). begin ();       

EntityManager getMetamodel() causes crash

Point objects in the database: em.getTransaction(). begin (); for (int i = 0; i System.out.println ... ;password=admin;drop" EntityManager em = emf.createEntityManager(); em.getTransaction(). begin (); MyEntity

ObjectDB CRUD Examples

.createEntityManager(); em.getTransaction(). begin (); CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder ... ")); EntityManager em = emf.createEntityManager(); em.getTransaction(). begin (); CriteriaBuilder criteriaBuilder

Problem with byte arrays in JDO - ClassCastException

        pm.currentTransaction(). begin ();      ... ().commit();         pm.currentTransaction(). begin ();    

Join performance in Objectdb

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

Catching exceptions from online backup

( ) ; } But it does not work well. For small database files in cases the exception is risen in the beginning ... . That way we would not lose the exceptions in the beginning of the backuping.   jakab Gergely

Unexpected behaviour upon update. Bug?

.createEntityManager(); em.getTransaction(). begin (); Update simple = new Update(); simple.i = 0; simple.v = 3; em.persist(simple); em.getTransaction().commit(); simple.v = 4; em.getTransaction(). begin (); simple = em

Internal exception when updating date filed (TemporalType.DATE)

;    entityManager.getTransaction(). begin ();         ... ;          entityManager.getTransaction(). begin ();  

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 ... explicitly: 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

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

Activation Issue

a deliberate error (e.g. at the beginning of the file) and try restarting the server. If the server

Problem with @UniqueConstraint

. createEntityManager (); em. getTransaction (). begin (); CI ci = new CI (); ci.name = "abc" ; em

Index on map key

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

find() cost unreasonable time!

;  em.clear();     trans. begin ();    }   }   trans.commit

I can't get cascading delete to work in JDO

.currentTransaction(). begin ();         persist(pm);         pm.currentTransaction().commit();         pm.currentTransaction(). begin ();  

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 ();        

"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");  

JDO PersistenceManager.getSequence() returns null sometimes

) System.out.println("getSequence 1 returned null"); // it should never be null pm.currentTransaction(). begin

NullPointer when accessing persistent field

;       em.getTransaction(). begin ();