ObjectDB Database Search

1-50 of 200 results

jakarta.persistence.Table.check

Jakarta Persistence (JPA) Method in jakarta.persistence.Table CheckConstraint[] check (Optional) Check constraints to be applied to the table. These are only used if table generation is in effect. Default: {} Since: Jakarta Persistence (JPA) 3.2

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

objectdb-2.6.9_02 (with "objectdb.temp.no-enhancement-crc- check " system property ... : I discovered to my horror (using Java decompilers and .class file time stamp checks ... works fine). - I have used Java decompilers to check the ObjectDB enhancement carefully. I recommend

Option or strategy to disable/skip runtime enhancement checks (to improve load time)?

On startup of a Maven-based web app there is verbose logging of object checking ... layer. For example, it is checking whether PrimeFaces JSF toolkit classes are enhanced. I am using Maven-based compile-time enhancement applied to entity modules (only), so I know these checks

Check for index existence ?

Hello, Is there a simple way to check if indexes specified in entities are well taken into account ... ? If you do, set the server configuration and check the server logs (queries are executed on the server ... that specific configuration file. Check the location of the objectdb.conf file, the location

License Activation Change and Checking Activation

with either the WIFI adapter enabled or disabled. You can check whether ObjectDB is activated or not ... You are right. This hidden (and undocumented) feature was implemented for a specific check in embedded mode. In client server mode it didn't work well, because it checks activation on the client

Dirty checking

) so you can check if an entity object is dirty using the static JDOHelper.isDeleted method. support Support  You may also use JDO methods (even if your application uses JPA) so you can check if an entity ... of this forum thread ("Dirty checking "). support Support ok, thanks, there are 'embedded' objects

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

above (write a 10-15 Mbytes) need to check remaining memory in any available profiler. Stack trace ... they can be released by the GC. Since all the persisted objects are in one large collection, aDataKeys , please check

How to check if an entity exists in a Database without loading it?

Hi, I am trying to speed up some code - where i check if an entity exists in order to make a decision. In Java - It looks like this (pk - is the primary key of the entity): MyClass find = em.find(MyClass.class, pk); boolean exists = find != null; Is there a way to check the existence

How to check if the classes were enhanced correctly with valid OEM license?

Hello, is there a way/tool how to check whether build classes were enhanced with valid OEM license? Scenario: 1) Build and enhance Java application with some Object DB license key. 2) Pick ... , etc.) Thank you. Maruta M Sedlakova To check if class MyEntity is enhanced using the OEM Enhancer use

Collections in JPQL and Criteria Queries

] EMPTY The IS [NOT] EMPTY operator checks whether a specified collection is empty. For example: c ... OF operator checks whether a specified element is a member of a specified persistent collection field ... provides an additional method for checking if a specified element is contained in a collection. JPA

Retrieving JPA Entities

that has already been fetched from the database is available in detached objects. JPA provides methods to check ... instance from the static getPersistenceUtil method. It provides two isLoaded methods: one for checking an entity and another for checking a persistent field of an entity. Retrieval by query The Query

Database Management Settings

The version- check attribute of the element specifies whether optimistic locking is enabled. Optimistic ... optimistic locking by setting the version- check attribute to false . The element The element specifies

Strings in JPQL and Criteria Queries

. LIKE - string pattern matching with wildcards The [NOT] LIKE operator checks whether a string ... ( _ ), which matches any single character. The left operand is the string to check for a match (usually

JPA Core Types

cache using these utility types: A utility interface obtained from Persistence . Use it to check ... -level cache. Use it to check if specific entities are cached or to evict data to ensure

jakarta.persistence.EntityManager

: the value returned by ConnectionFunction.apply .. Throws: PersistenceException - wrapping the checked ... , the persistence provider must perform optimistic version checks when obtaining the database lock. If these checks fail, the OptimisticLockException is thrown. If the lock mode type is pessimistic and the entity

JPA Attributes Annotations

to perform optimistic locking checks . Enum mapping Configure how Java enumerated types are persisted and used

JPA Class Enhancer

with the ObjectDB Enhancer as a Java agent, each loaded class is checked and automatically enhanced

Defining a JPA Entity Class

exceptions are unchecked, whereas Java I/O exceptions are checked . Persistent fields in entity

Database Doctor

The ObjectDB Doctor tool provides two related services: Diagnose and validate an ObjectDB database file : Checks a specified ObjectDB database file to verify its integrity. If the file is corrupted, the tool produces a detailed diagnostic report that lists all errors. Repair a corrupted ObjectDB

Query Parameters in JPA

to check if a specified parameter has a value ( isBound ). These methods are not required to execute queries and are likely used less often.

jakarta.persistence.JoinTable

: {} Since: Jakarta Persistence (JPA) 2.1 CheckConstraint[] check (Optional) Check constraints to be applied

jakarta.persistence.JoinColumn

CheckConstraint[] check (Optional) Check constraints to be applied to the column. These are only used

jakarta.persistence.EntityManager.lock(Object,LockModeType,LockOption...)

attribute, the persistence provider must also perform optimistic version checks when obtaining the database lock. If these checks fail, the OptimisticLockException is thrown. If the lock mode type ... call is made. OptimisticLockException - if the optimistic version check fails. TransactionRequiredException

jakarta.persistence.EntityManager.lock(Object,LockModeType)

checks when obtaining the database lock. If these checks fail, the OptimisticLockException is thrown ... lock call is made. OptimisticLockException - if the optimistic version check fails

jakarta.persistence.EntityManager.lock(Object,LockModeType,Map)

, the persistence provider must also perform optimistic version checks when obtaining the database lock. If these checks fail, the OptimisticLockException is thrown. If the lock mode type is pessimistic ... call is made. OptimisticLockException - if the optimistic version check fails

Mismatch client-server protocol prefix

:757) I checked multiple times if the versions match. They do. DB server version 2.6.2. Client ... starts with a prefix that is checked by the server before handling the request. That check could fail ... with this exception. Please check the log files for other exceptions, possibly before this exception is thrown

500Mb ObjectDb database opening issue

the database since they are checked and analyzed. But it should not take more than a fraction ... that just open the database? Alternatively, please check opening the database with a Profiler ... which show problem with long data base open operation issue. Could you check from ObjectDb

evictAll() behavior

is the same like before evictAll() mth and i in the result i get OutOfMemory How I can check size od ... additional action (such as evict). support Support hi I've checked in debuger that every data model class ... Tomasz Tomasz Wozniak OK. So please check the state of the objects before evictAll . evictAll affects

virtual servers and one file

? Are the database and the OS on separate hard drives? and maybe the most important check ... you for the quick reply, I have checked all the links to VMware's knowledgebase for matches ... ; objectdb.conf file that is not is use). Check which configuration file in actually used in the log

Memory Leak in EntityManagerFactory ?

and removed from memory ( checked in the Profiler) 4. nevertheless there are lots of identical Copies ... it. Anyway, if this diagnosis is correct then a possible solution on your side may be to check and commit ... (but I'll check ). Should I remove the isOpen() Condition B? I will also try to call clear. The close

Updating Entities

{ private int level; private int rate; ... public boolean setRate() { //Error Checking ... .getText(); //Error Checking - all checks get passed if(/*No Errors*/) { p.setRate(rate); controller ... thought it was a problem in my code for how I loaded the content into the table, but then I tried checking

OEM: Too many persistable types (>10) - exceeds evaluation limit (error 1011)

. support Support Thank you for the link to the class enhancing confirmation checking code.  ... check into our application.)   Yet, I STILL see the issue even after confirming that ObjectDB ... to check what change could cause your enhanced entity classes to be inaccessible to ObjectDB. support

Is 2 level cache in use?

Hi, Is there any way to check , if 2 level cache is in use? Right now I've done two things: 1 ... You cannot check if the L2 cache is enabled directly but you can check its content , by using emf ... and then check if it is cached. The L2 cache doesn't always improve performance. It depends on the application

Handling deleted references

and no version. To simplify the use case I added a @PostLoad method to the User class, which simply checks ... ? This would simplify my use case since all I have to do is to check if the reference is null and create a new ... whatever check to identify previously deleted Entity instances profile = ....; // create new Profile

Activated ObjectDB still throws "Too many persistable types"

have already reactivated and checked that my objectdb.conf is correctly used (by inserting random chars ... be the problem with that? There was a problem in versions until 2.3.7, causing incomplete license checks ... and usve6844? Could you please check both with 2.4.4 and tell which works and which doesn't? support

jakarta.persistence.EntityManager.runWithConnection(ConnectionConsumer)

the transaction for rollback. Parameters: action - the action Throws: PersistenceException - wrapping the checked

jakarta.persistence.EntityManager.callWithConnection(ConnectionFunction)

: PersistenceException - wrapping the checked Exception thrown by ConnectionFunction.apply , if any. Since: Jakarta Persistence (JPA) 3.2

Optimistic locking: prevent version increment on entity collection attribute

create the readings in one call and I try to read them in another call. I checked the database ... is detached between the calls, check this issue and the no-detach solution. I have tried to clear ... with the containing entity. Check what the object contains in the debugger, and try to access the collection

Spring MVC JPA Tutorial - IntelliJ Project

+F10 ). If the browser fails to open check the settings at  File Settings Web Browsers .

Step 1: Create a Maven Web Project

the project node and checking that the  Run As Run on Server command is available

Step 7: Run the Spring Web App

. To install a new server check the Manually define a new server radio button (after Run As Run on Server

Step 3: Create an ObjectDB Data Source

the Test Connection button to check the connection url: Click the Finish button to complete the creation

missing merger

to check . Strangely, the errors in the log (at #1) indicate IDs 9, 10, 3885, 3577 - maybe ... , we are using could that cause problems like these ?     hgzpincher Hans-Georg Zwicker we checked ... ; hgzpincher Hans-Georg Zwicker please check that again, we have again a more than bad situation hgzpincher

Internal objectdb exception when using different language on a machine

with an internal reference to a type id that doesn't exist. Could you please check the database file ... was not enhanced and caused the exceptions above. Although the enhancement check was activated: the enhancement check does not throw an objectdb exception. Have you an idea why the enhancement check does

NullPointerException using with "refresh" method

. Maybe you should also check if ObjectDB is safe here. Just in case, because both issues came ... _and_potential_data_loss itsme Martin Petzold Please check the recovery setting in your ObjectDB ... ". Check the database in the Doctor, if it is already corrupted then first fix it using

combined index not used

more, but you could check in the Action table, typically we take an endDate that is 30 days from ... seconds. Could you please check running that query in the Explorer? support Support Execution time of this query fells to 1457 on repeating runs (when cache is disabled), will be checked now

Unexpected Exception (java.lang.NullPointerException: Cannot invoke "com.objectdb.o.ORS.Z9())

EntityManager . This happens on a check whether the entity object has been modified by comparing ... this check is not needed when entity classes are enhanced, so enhancing the class may solve the issue ... , so double check that all your entity classes are enhanced. Something else to check is that all objects

Unexpected error when loading all entity instance

instances 2. Check for each entity instance if it is references using queries (select from where field ... the database is corrupted. Checking it with the ObjectDB Doctor produces errors. After using the Doctor ... the database file. I shutdown the application by closing all EntityManager instances. Please check

Indexes broken after schema update

) bensteele Ben Steele Could you please check the database with the Doctor? support Support java -cp ... result, dateCreated is not indexed. bensteele Ben Steele Please check the attached file ... - it checks that the data is fine and that the indexes are fine but currently it doesn't check

Database access error , Doctor hanging on trying to repair, production shutdown at our biggest customer

. Could you please double check it (sometimes the old objectdb.jar file remains in the classpath and the wrong ... checked the version and also use Maven we did run Doctor after switching to the latest version ... by the Doctor in May when you switched to 2.7.1_01 it could help in checking if the issue happened