Forums

Get More Support

Here for you 24/7

learn more
VOD Free SDK

Start Building your Engine Now

Download Now
VOD Extranet

Access to patches, license management,
tech docs and more for existing VOD customers.

Learn More
find() on EntityManager
Last Post 03 Feb 2012 03:15 PM by PerJochumsen. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
MarkHollmann
New Member
New Member
Posts: 64


--
03 Feb 2012 02:58 PM

    Hello,

    there is an API find() on the EntityManager interface. It is used to directly load an object. The method signature includes the object id as geenric object, and the class of the object sought.

    Does Versant JPA actually require the class to be supplied? I would think it can work out easily from the object ID what the type is.

    Are there performance benefits in supplying the class (does it make the lookup faster in any way)?

    Regards, Mark

    PerJochumsen
    New Member
    New Member
    Posts: 16


    --
    03 Feb 2012 03:15 PM
    Hi Mark,
    you are right, Versant JPA does not require the class, you can use em.find(null, ...) in all cases without any risk. Supplying the class does not make the lookup faster in any way, the server-side lookup with the object ID is already as fast as it can get.
    Cheers, Per
    You are not authorized to post a reply.


    Active Forums 4.3