ObjectDB Database Search

151-200 of 200 results

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

When using inheritance throw exception java.lang.NoSuchFieldError: __odbTracker on NetBeans 7. 3 ... ) if remove the inheritance works fine. On GlassFish 3 .1 with inheritance also works fine. Why "person ... --127.0.0.1-8080-1) [ObjectDB 2.5.1_05] Package test is not found by the enhancer (error 108) 12:25

Grouping by date()

have to group by date(). For few queries I was concatenating 'date' from year()-month()-day() calls ... field? lwalkowski Lukasz Walkowski Version 2. 3 .5 supports 2 new date functions that take a Date instance ... with new version. When you group by date() there are two days per day. I mean group by divides each day

Suspected memleak caused by bad state of EntityManager

the heap dump and found the numerous instances were referenced by ObjectDB. ([ObjectDB 2. 3 .6_14]) com ... and using. We find a slow memleak in our application recently, and by trace of Entity construct and finalize, we found the problem is caused by bad state of EntityManager. After first throwing

Master database switching to read-only mode, possibly caused by slave failure

, slave became unresponsive and the master switched to read-only mode. By the look of it the slave ... during 3 minutes between 13:22:43 and 13:25:43 returned at 13:25:44 with Exception: [ObjectDB 2. 3 .7_08 ... ) .............................................................. Caused by : com.objectdb.o.UserException: Connection is closed at com

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c ... Just found out thath it seems to work correctly with 2. 3 .7 and fails with 2.4. 3 _03 andix Andreas ... you for the test case. Actually the test passes also with ObjectDB 2.4. 3 , since this regression was added in build

NULL prefered in ORDER BY?

Hi! Is there a way to NOT prefer NULL in Order BY ? I.e. assume this: @Entity class Hint {   ... do something like SELECT FROM Test ORDER BY hint.name It orders ASC like this (assuming I've got ... } and third one to NULL: Test 3 (with hint = NULL) Test 1 (with hint = A ) Test 2 (with hint = B) And descending: Test 2

Strange behaviour with ORDER BY and IN

Hi, after trying out objectdb for a while now and being quite impressed by its speed and overall performance I noticed a strange behaviour where an ORDER BY - directive isn't executed as ... if we order by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter

UserException: Package com.example.model is not found by the enhancer

get the exception: com.objectdb.o.UserException: Package com.example.model is not found by ... " + ".*"); during contextInitialization. In my setup I'm using JDK 8 , Object DB and Embedded Tomcat 8.0. 3 so after clean and build my dist directory contains: 1. lib directory with all the jars 2. example.jar 3 . README.txt

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by " set on @OneToMany ... - one with mapped by , second with adding entities list without "mapped by ". The difference is huge event for such small objects - 2ms (without mapped by ) vs ~50ms (with mapped by ) Is there any chance

Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped- by attribute (yeah ... attribute) 2- Retrieve only 10 000 for testing 3 - Wait ... On my AMD FX 8350, it took 60s Now, go the MyEntity class and remove "mapped- by ". You obtain 1 second max of query fetch. So my performance

Need help to analyse very high memory usage by objectdb (PRU, SEV, VAL[])

exceeded" exception. Nearly 90% of the memory are taken by com.objectdb.o.PRU (49%) com.objectdb.o.SEV ... /query/domain/objectdb.com Forum Thread Need help to analyse very high memory usage by objectdb objects (PRU, SEV, VAL[]) has been created. btc_es BTC EmbeddedSystems This may be caused by large insert

Getting java.lang.ArithmeticException: / by zero

() is throwing the following exception ava.lang.ArithmeticException: / by zero at com.objectdb.td.remove(td.java ... Binit Bhaskar This division by zero occurs in some hash table that happens to have a 0 size (but I don't know why). You are using version 1.0. 3 which is almost 7 years old. Many bugs have been fixed

a second mapping-file is ignored in persistence.xml by enhancer

will be enhanced by following output: enhancer: [java] [ObjectDB 2.6.0_02 Enhancer] [java] 3 persistable ... will be enhanced by following output, because the enhancer is apparently ignored the ormreq.xml

getting "Unexpected total page count" error when diagnosis mu db by ObjectDB doctor.

, and it is unclear if this has anything to do with the reported issue of no results in a query (post # 3

ObjectDB 2.3.0

queries in the Explorer (issue # 3 ). Other small Explorer improvements. Added support of IN operator in ... Java 7 class file format. Improved error message for invalid mapped by (inverse) fields ( issue #473 ). Improved persisting byte[] by reducing required storage space. Removed a shutdown hook that leads

Dynamic Metadata (JDO 3.0)

JDO 3 introduces the ability to specify and query metadata of persistable types dynamically. ObjectDB 2 supports specifying metadata by : JPA XML Mapping Metadata JPA Annotations JDO XML Metadata (e.g. package.jdo) JDO Annotations All these methods are static, i.e. the metadata has to be provided

jakarta.persistence.criteria.CriteriaQuery

) 3 .2 boolean isDistinct () Return whether duplicate query results must be eliminated or retained ... (i.e., a criteria query object created by either the createTupleQuery method or by passing a Tuple ... class X (i.e., a criteria query object created by passing a X class argument to the createQuery

Alias not used in ORDER BY

would have expected the alias to be used in the ORDER BY clause, something like SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY TEST However what I actually get as query string is SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY UPPER($1.someStringProperty) This doesn't

version 2.4.5+ with GlassFish 3.1.2, errors when runs application. Version 2.4.4 worked but not 2.4.5 or later

(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) Caused by : com.objectdb.o ... (EJBLocalObjectInvocationHandler.java:214) ... 75 more Caused by : com.objectdb.o.TEX: Type User is not

ObjectDB 2.3.6

LEFT OUTER JOIN. Fixed GROUP BY DATE(...) - merging AM and PM into the same date.

ObjectDB 2.6.3

operation). Fixed JOIN FETCH bugs. Fixed a performance issue with mapped by fetch. Fixed the ObjectDB

ObjectDB 2.8.3

objects. Removed false alarms by the Doctor. Fixed a deadlock ( issue #2512 ) on closing

ObjectDB 2.0.3

Added support for serialization of inverse (mapped by ) collection fields. Fixed some activations issues.

ObjectDB 2.3.4

Added OSGi support. Added support of MEMBER OF for inverse (mapped by ) collections. Changed logging of incomplete recovery records from WARNING to TRACE  ( issue #565 ). Changed main configuration elements from required to optional. Fixed the "Negative snapshot user count" bug ( issue #556

Storing JPA Entities

Using Jakarta Persistence (JPA) You can store new entities in the database either explicitly by ... . The exception is thrown either by persist , if the existing entity is currently managed by the EntityManager , or by commit . Referenced embedded objects The following code stores an Employee instance

JPA Shared (L2) Entity Cache

a second-level (L2) cache of entities, which is managed by the EntityManagerFactory and shared by ... and are shared by all EntityManagerFactory and EntityManager instances for that database ... value. Persistence Unit Settings You can also enable or disable the shared cache by using a persistence

Incorrect entity returned by query

you for this report and test case. Please try version 2.7. 3 , which should fix this bug. support Support

jakarta.persistence.JoinColumn

is in effect. Since: Jakarta Persistence (JPA) 3 .2 String columnDefinition () (Optional) The SQL ... to the column. This is only used if table generation is in effect. Since: Jakarta Persistence (JPA) 3 .2 ... strategy is selected by the persistence provider. Since: Jakarta Persistence (JPA) 2.1 boolean

jakarta.persistence.criteria.Path

referenced by the path Super Interfaces: Expression , Selection , TupleElement Represents a simple ... expression of the given basic type. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ... for equality. Since: Jakarta Persistence (JPA) 3 .2 Predicate equalTo ( Object value ) Create a predicate

Managing JPA Entities

when it is persisted to the database by using an EntityManager 's persist method, which must be invoked ... about making changes to entities. A managed entity can be marked for deletion by using ... is retrieval by refresh , which always requires database access. The main role of the persistence context

jakarta.persistence.JoinTable

effect. Since: Jakarta Persistence (JPA) 3 .2 String comment () (Optional) A comment to be applied to the table. This is only used if table generation is in effect. Since: Jakarta Persistence (JPA) 3 .2 ... , a default foreign key strategy is selected by the persistence provider. Since: Jakarta Persistence (JPA) 2

jakarta.persistence.SecondaryTable

. Since: Jakarta Persistence (JPA) 3 .2 String comment () (Optional) A comment to be applied to the table. This is only used if table generation is in effect. Since: Jakarta Persistence (JPA) 3 .2 ForeignKey ... foreign key strategy is selected by the persistence provider. Since: Jakarta Persistence (JPA) 2.1

jakarta.persistence.Table

: Annotation Target: Type Specifies the primary table mapped by the annotated entity type. Additional tables ... . These are only used if table generation is in effect. Since: Jakarta Persistence (JPA) 3 .2 String ... is in effect. Since: Jakarta Persistence (JPA) 3 .2 Index[] indexes () (Optional) Indexes for the table

jakarta.persistence.MapKeyJoinColumn

(JPA) 3 .2 String referencedColumnName () (Optional) The name of the column referenced by ... ; ... } Example 3 : @Entity public class Student { @Id int studentId; ... @ManyToMany // students and courses ... to SQL generated by the provider for the column. Since: Jakarta Persistence (JPA) 1.0 ForeignKey

Different behavior for two equal queries

:   like(v$1.name,'%Q%'). Step 3 : Group results --------------------- Group the results of step 2by:   $1. [ Step 4] Remove duplicates from the groups of step 3 . [ Step 5] Apply selection ... .organisation. Step 3 : Process IndividualCommunicationInfo (v$2) instances   (for every result tuple

Detached JPA Entities

Detached entities are objects in a special state where they are not managed by an EntityManager ... have limited functionality: Many JPA methods, for example, lock , do not accept detached objects. Retrieval by ... EntityManager instances. Explicit detach You can detach an entity by using the detach method: em

JPA Connections and Transactions

A connection to a database is represented by an EntityManager instance, which also provides methods ... connection by using a separate EntityManager instance for each HTTP request. The main role ... transactions. Transactions are managed by an EntityTransaction instance, which is obtained from

jakarta.persistence.NamedNativeQuery

may be executed by calling EntityManager.createNamedQuery . In simple cases, a resultClass specifies ... . May not be used in combination with resultSetMapping . Since: Jakarta Persistence (JPA) 3 .2 ... with resultSetMapping . Since: Jakarta Persistence (JPA) 3 .2 EntityResult[] entities () Specifies

queries under 2.7.6_4 significantly slower than under 2.7.6

.objectNameUpper='SENKEN-LINIE-1'),(v$1.classIdentifier='(TC)'))). Step 3 : Process ObjectProperty (v$2 ... .classIdentifier='(TC)')). [ Step 1b] Order the results of step 1a by :   v$1. [ Step 1c] Scan index com.agile ... )')). [ Step 1d] Order the results of step 1c by :   v$1. [ Step 1e] Merge the results of steps 1b

jakarta.persistence.PersistenceConfiguration

) Since: Jakarta Persistence (JPA) 3 .2 Public Static Fields CACHE_MODE String specifying a SharedCacheMode ... by "jakarta.persistence.schema-generation.create-script-source" . Since: Jakarta Persistence (JPA) 1 ... source is specified by "jakarta.persistence.schema-generation.drop-script-source" . Since: Jakarta

SELECT clause (JPQL / Criteria API)

query returns Country objects, which then become managed by the EntityManager instance em : TypedQuery ... directly. However, you can add their content to the SELECT clause by using a bound JOIN variable in ... with the containing entities. Therefore, embedded objects that are retrieved directly by a result path expression

Setting and Tuning of JPA Queries

method specifies the starting point of the result window by defining how many results to skip from ... because the setter methods in Query and TypedQuery support method chaining by returning the query object on which they were invoked. Flush mode (setFlushMode) Changes made to a database by using an EntityManager

Database Server

database is accessed only by a single web application, it should be embedded in that application ... Chapter 6 . You can override this by specifying a configuration path on the command line: $ java com ... . For example, you can increase the maximum JVM heap size and improve performance by using the HotSpot JVM

Database Transaction Replayer

files). Recording is disabled by default and can be enabled in the configuration . The ObjectDB Replayer ... . This feature is useful for two purposes: Recovering from a database failure by replaying the recorded operations. Reproducing problems during debugging by repeating a failure. Recording transactions

JPA Query Structure (JPQL / Criteria)

of up to six clauses in the following format: SELECT ... FROM ... [WHERE ...] [GROUP BY ... [HAVING ...]] [ORDER BY ...] The SELECT and FROM clauses are required in every query that retrieves data; update and delete queries have a slightly different structure. The other JPQL clauses-- WHERE , GROUP BY

JPA Criteria Query Selection and Results

and ordering, mirroring the SELECT and ORDER BY clauses in JPQL or SQL. These interfaces allow you to specify ... ;the result as an array of objects or as individual values by  index, alias string or ... of this selection in result tuples, rather than by index or string that are considered

Online Backup

Because an ObjectDB database is stored as a single file in the file system, you can back it up by ... it is not open in an ObjectDB server or in use by any application. ObjectDB also supports online ... You can start an online backup by executing a special query on an EntityManager ( em ) instance

Updating JPA Entities

that are referenced by modified entities through fields that are marked with CascadeType . PERSIST or ... an entity by modifying it within an active transaction. You do not need to invoke an EntityManager method ... classes are enhanced. Therefore, for efficiency, ObjectDB by default ignores array changes

JPA Criteria API Queries

are defined as strings, similar to SQL. In contrast, JPA Criteria queries are defined by instantiating ... ); List results = query. getResultList (); Because both types of queries are ultimately represented by ... equivalent clauses, this guide explains them side- by -side in the Query Structure pages. The following

jakarta.persistence.CollectionTable

of basic or embeddable types. Applied to the collection-valued field or property. By default ... for the columns corresponding to those references may be overridden by means ... is specified in either location, a default foreign key strategy is selected by the persistence