About Id

forum_thread

Is there any faster select method?

SELECT: TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p WHERE p.id = " + element.getId(), Point.class); List<Point> points = query.getResultList();   WRITE: em.persist(p);   ** the Point class is of the tutorial.   I found the above select method is ten times slower than the write method, in my very simple benchmark. I guess the reason there is no SQL in the write method.   ... ( "SELECT p FROM Point p WHERE p.id = " + element. getId ( ) , Point. class ) ; ... objects can be retrieved by their primary key (object ID) directly using the find  method,  so in this specific case ...

 
forum_thread

Bug when posting threads with Firefox 34.0.5

... seems to be on this line: w.setAttribute('id',m);w.setAttribute('type','text/css');}return ... w,x=s(a.document),y='.'+n.id,z=[y+' .cke_wrapper',y+'_dialog ...

 
api-jdo

unpinAll(oids)

Unpin the parameter instances from the second-level cache.(Method of javax.jdo.datastore.DataStoreCache)

 
api-jpa

TableGenerator.table

(Optional) Name of table that stores the generated id values.(Annotation Element of javax.persistence.TableGenerator)

 
forum_thread

EntityManager.merge gives EntityNotFoundException

Just started using objectdb (2.3.4). Calling EntityManager.merge for a new (non-managed) object gives EntityNotFoundException. I am perplexed by this. See attached test case. Thanks for your assistance. Full error output is: Exception in thread "main" [ObjectDB 2.3.4] javax.persistence.EntityNotFoundException Entity is not found: classdb.Test#'id' (error 631) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:456) at classdb.Test.main(Test.java:32) ... Entity is not found: classdb.Test#'id' (error 631) at com.objectdb.jpa.EMImpl.merge(EMImpl.java:456) ...

 
api-jpa

javax.persistence.PrimaryKeyJoinColumns

Groups PrimaryKeyJoinColumn annotations.(Annotation of JPA)

 
issue

not possible to add an existing object to an array via explorer

when trying to add an existing object via context menu/add existing object an entering the id the attached message appears ... via context menu/add existing object an entering the id the attached message appears (see attachment): ...

 
api-jdo

copyKeyFieldsToObjectId(pcClass, fm, oid)

Copy fields from an outside source to the key fields in the ObjectId.(Method of javax.jdo.spi.JDOImplHelper)

 
api-jdo

jdoCopyKeyFieldsFromObjectId(fm, oid)

Copy fields to an outside consumer from the key fields in the ObjectId.(Method of javax.jdo.spi.PersistenceCapable)

 
issue

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

NB: the following issue only happens with ObjectDB, it does not happen with EclipseLink.  Glassfish3.0.1 objectdb-2.2.5_10 JavaEE6 web app The error reports as: javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft Where getWidthPxSideBarLeft() is an annotated getter of an entity ViewConfiguration: ... @Stateless facade session bean using em.find(entityClass, id). The strange thing is that it works perfectly fine for all JSF ...