ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.EntityManager.find(Class,Object)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ) Find by primary key. Search for an entity of the specified class and primary key. If the entity instance is contained in the persistence context

jakarta.persistence.EntityManager.find(EntityGraph,Object,FindOption...)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    EntityGraph entityGraph ,    Object primaryKey ,    FindOption... options ) Find an instance of the root entity of the given EntityGraph by primary key, using the specified options

jakarta.persistence.EntityManager.find(Class,Object,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ,    Map properties ) Find by primary key, using the specified properties. Search for an entity of the specified class and primary key

jakarta.persistence.EntityManager.find(Class,Object,LockModeType)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ,    LockModeType lockMode ) Find by primary key and obtain the given lock type for the resulting entity. Search for an entity of the specified

jakarta.persistence.EntityManager.find(Class,Object,LockModeType,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ,    LockModeType lockMode ,    Map properties ) Find by primary key and lock the entity, using the specified properties. Search

jakarta.persistence.EntityManager.find(Class,Object,FindOption...)

Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager T find (    Class entityClass ,    Object primaryKey ,    FindOption... options ) Find an instance of the given entity class by primary key, using the specified options . Search for an entity

Problem to use find method on an abstract Class: AbstractMethodError is thrown

; When I use find method mentioning SentenceStatement everything works just fine but when I use ... with the 2 options for a better ease    this is the stack trace when I try to find LogicalObject ... -127.0.0.1-8080-1) JBAS014101: Failed to find SFSB instance with session ID {[-48, -118, 126, 59, 2

find() cost unreasonable time!

, why? Result: =========== find time @ 24.125000 getSons time @ 0.000000 1 : type:Nodes, sons:2 child : 2 child : 3 Iterator time @ 0.000000 find time @ 0.000000 getSons time @ 0.000000 2 : type:Nodes, sons:2 child : 4 child : 5 Iterator time @ 0.000000 find time @ 0.000000 getSons time @ 0.000000 3

Error when trying to open the Explorer (failed to find Java VM)

get this windows error: "Failed to find Java VM".   What is the problem? dreckguy Ophir Haramaty ... \bin\ [err] Failed to find Java VM.  and the windows startup error is shown By trying explorer-b ... . so after finding the jar file start everything needed it won't cause a problem but still worth reporting.  

find out if an entity is refered by other entities

Hello, it is possible to find out if a child entity is just referenced by other parent entity types. But the types of the parent entities are unknown. Is there a possibility to find out if an entity is referenced? best regards btc_es BTC EmbeddedSystems You can only find it (using a query

find() delay

(o); trans.commit();} 2, for 1 to 30 {p = em. find (typeC.class, i); print(p)} So simple a test ... is enabled. support Support L2 cache? I'm not sure. But why the second find () will output? By ... .getResultList(); // this works 3. typeC p = em. find (typeC.class, i);  // this p will be null

EM.find() is suddenly slower

We have a new performance bottleneck, if we use EM. find () on the same entity type 10.000 times in order to get 10.000 different entity instances. For use cases which call the EM. find () only 1000 ... where you can find the hotspot in the profiling. btc_es BTC EmbeddedSystems Thanks. It is unclear

JPA Runtime Tuning & Configuration

defaults for that query. Operation (argument): Settings passed to specific EntityManager operations ( find , lock , and  refresh ) override all higher-level defaults for that call. The  find ... , RefreshOption . Pass as an argument to lock() , find () , or refresh() . Pessimistic lock scope

Entity can be found by find() but not by query

Hello, we create an entity in transaction A, commit and close the transaction. After that in transaction B we try to find the entity in the DB. But we get always only a result with em. find (), with a query it is not always possible to get the entity, sometimes we get the entity

What algorithm in find()

I test the time cost for find (), obtain a linear complexity with the following codes:   int iBlock = 0x10000;   for (int i = 1; i

Cannot find objectdb-jee.jar releases in the ObjectDB maven repository

Hi, I can only find objectdb.jar releases in the ObjectDB maven repository. If objectdb-jee.jar releases are there, can you let me know where they are, otherwise would it be possible to include objectdb-jee.jar for the current and future maven releases ? Thanks Andrew   andrewv Andrew Voumard

Query to find object from element of a contained collection

I have an OrderData class, containing an OrderItemData collection, i would like to find OrderData elements by OrderData.items.itemId. I cant get a proper query with MEMBER OF or IN. Does anyone have an idea on how i could formulate that as Typed or CriteriaBuilder query? Thanks.   @Entity

Finding an object by its datetime

SearchBookingByTimeStamp() { Calendar btime = Calendar.getInstance(); btime.set(2012, 10, 11, 7, 30, 00); //This time is already inserted, trying to find it /* My Query */ TypedQuery query = em.createQuery( "SELECT b FROM Booking b WHERE b.btime = :btime", Booking.class) .setParameter("btime

find repeated records by JPQL

Hi, I know a single command in MySQL can find repeated records: Select * from TTT t where id in (select id from TTT s group id having count(id)1) I dont know how to do this using JPQL, but I use query from 430,000 records and put them into hashmap, finally it cost one hour and failed: Exception in

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

* * EntityManager. find (entityClass, primaryKey) is slow when accessing * non-existent IDs. * * Select queries

Finding out the JPA provider

Do you have any preferred way of finding out whether ObjectDb is my EntityManager's JPA Provider? I know there are problems with using getDelegate ( http://weblogs.java.net/blog/ss141213/archive/2009/05/be_careful_whil.html ) but on the other hand unwrap is not very portable ( https

Find the error...JPA ENTITY HIBERNATE

Hey guys....i am searching for some days for the problem...Maybe one of you can find the error   DATABASE SHEMA: https://www.file-upload.net/download-12530779/2017-06-0214_25_00-MySQLWorkbench.png.html       Entities:   package com.example.demo; import java.io.Serializable

How find out ObjectDB version at runtime (in a web app)

How find out ObjectDB version at runtime (in a web app)

finding post-persist pre-commit objects

finding post-persist pre-commit objects

Retrieving JPA Entities

object with a primary key of 1: Employee employee = em. find (Employee.class, 1); You do not need to cast the retrieved object to Employee because find uses generics and returns an instance of the class ... it. If the object is not in the database, find returns null . A similar method, getReference , is a lazy

JPA Optimistic and Pessimistic Locking

. An exception is thrown if the check finds that another transaction has already updated the object ... a single atomic operation. For example, the find method has a form that accepts a lock mode: Employee employee = em. find ( Employee.class, 1, LockModeType . PESSIMISTIC_WRITE ); Similarly, the refresh

JPA Shared (L2) Entity Cache

.retrieveMode", CacheRetrieveMode . BYPASS ); // For retrieval by type and primary key: em. find ... ); You can also override the setting for a specific retrieval operation. For example: em. find

Updating JPA Entities

, you can modify it in memory within an active transaction: Employee employee = em. find (Employee.class ... when entity classes are enhanced: Employee employee = em. find (Employee.class, 1); em. getTransaction

jakarta.persistence.EntityManager

of individual entity instances. The client may persist and remove instances, find entities by ... . Some operations of this interface, including the methods lock , refresh , and find , accept ... and vendor-specific options: find and find accept FindOption s, refresh accepts RefreshOption s, and lock

Database Management Settings

a database and finds a recovery file, which indicates that the database was not closed properly

Setting and Tuning of JPA Queries

can easily make uncommitted changes visible for simple operations, such as find . However, query

Is ObjectDB better than competing object databases?

that during development you may find that an essential feature is missing. For example, some competing products

JPA Fetch Plan Graphs

as a template for a query or find operation, allowing you to override the default fetch strategies

Deleting JPA Entities

: Employee employee = em. find (Employee.class, 1); em. getTransaction (). begin (); em. remove (employee

JPA Criteria API Queries

. Many developers find string-based JPQL queries easier to use and understand

Chapter 4 - JPA Queries (JPQL / Criteria)

The Jakarta Persistence Query Language (JPQL) is an object-oriented version of SQL. Users familiar with SQL should find JPQL easy to learn and use. This chapter explains how to use JPQL and the Jakarta Persistence (JPA) Criteria Query API, which provides an alternative way to build queries in

Blocked by find

" find " method. If nothing is returned from the db the passed object is persisted to the db. I have 5 ... somewhere in the find . The thread dump looks like: Name: DEV1-WSAgent-1-Existing/3 State: RUNNABLE Total ... :1056) com.objectdb.o.OBC.aK(OBC.java:969) com.objectdb.jpa.EMImpl. find (EMImpl.java:551) - locked

Unexpected exception (Error 990) on find

.EMImpl. find (EMImpl.java:591) at com.objectdb.jpa.EMImpl. find (EMImpl.java:514) at sun.reflect ... (SharedEntityManagerCreator.java:240) at $Proxy33. find (Unknown Source) at local.jpa.mapping.xmlparsing.RepoEbene1a ... and may be relevant. The exception is thrown during find . What entity key type is used in that find

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

Sometimes the ObjectDB throws an internal exception if a find () was executed. It is a sporadic ... .objectdb.jpa.EMImpl. find (EMImpl.java:607) at com.objectdb.jpa.EMImpl. find (EMImpl.java:519) and com ... (UserException.java:93) at com.objectdb.o.OBC.aN(OBC.java:906) at com.objectdb.jpa.EMImpl. find (EMImpl.java

NPE when doing a find()

a em. find (User.class, 1).  Then this happens: [ObjectDB 2.2.1_02] Unexpected exception (Error ... (OBC.java:912) at com.objectdb.jpa.EMImpl. find (EMImpl.java:534) at com.objectdb.jpa.EMImpl. find

InternalException during EntityManager.find()

.onObjectDBError(OBC.java:1566) ~[na:na] at com.objectdb.jpa.EMImpl. find (EMImpl.java:607) ~[na:na] at com.objectdb.jpa.EMImpl. find (EMImpl.java:519) ~[na:na] at com.btc.ep.expression.dal.internal.repositories ... ) ~[na:na] at com.objectdb.o.OBC.aN(OBC.java:987) ~[na:na] at com.objectdb.jpa.EMImpl. find (EMImpl

jakarta.persistence.FindOption

Jakarta Persistence (JPA) Interface jakarta.persistence.FindOption An option influencing the behavior of EntityManager. find . Built-in options control locking , cache interaction , and timeouts ... Timeout EntityManager. find (Class, Object, FindOption...) EntityManager. find (EntityGraph, Object, FindOption...) Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.criteria.CriteriaBuilder

) Create an aggregate expression for finding the greatest of the values (strings, dates ... an aggregate expression for finding the least of the values (strings, dates, etc). Parameters: x

jakarta.persistence.OptimisticLockException

, will be marked for rollback. See Also: EntityManager. find (Class, Object, LockModeType) EntityManager. find (Class, Object, LockModeType, java.util.Map) EntityManager.lock(Object, LockModeType) EntityManager

jakarta.persistence.LockModeType

as an argument to: one of the methods of EntityManager which obtains locks ( lock() , find () , or

jakarta.persistence.NamedEntityGraph

, and may be passed to EntityManager. find . Since: Jakarta Persistence (JPA) 2.1 Annotation Elements String

jakarta.persistence.EntityGraph

.addNamedEntityGraph(String, EntityGraph) EntityManager. find (EntityGraph, Object, FindOption...) Since: Jakarta

jakarta.persistence.CacheRetrieveMode

is read from the database via the EntityManager. find methods and execution of queries. USE indicates

jakarta.persistence.criteria.CriteriaBuilder.greatest(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder Expression greatest (    Expression x ) Create an aggregate expression for finding the greatest of the values (strings, dates, etc). Parameters: x - expression representing input value to greatest operation

Step 7: Run the Spring Web App

) in Tomcat: Find the Tomcat server in the [Services window] under Servers. Right click the server node