ObjectDB Database Search
101-150 of 200 resultsVersion 2.5.6 enhancement problem solved by updating to version 2.5.7_03 updated ObjectDB from 2 .5.6.x to 2 .5.7_03. Maybe this will save someone a bit of time and effort. - Ron AlphaOne Ron Brennan Actually build 2 .5.6 should also support Java 8 ... . But maybe build 2 .5.7_03 is somehow better for Java 8. Thanks for the report. support Support | |
In version 2.5.2_05 does not work greatest by Date In earlier versions this query worked fine. In version 2 .5. 2 _05 does not work .orderBy(cb.desc(cb.greatest(root.get("createDate").as(Date.class)))).distinct(true) Thank you for your help. galandor Orlov Sergey Please try build 2 .5. 2 _06 that should fix this regression (of casting to Date ). support Support | |
Pre-detach loading: retrieval by navigation not working in if statement synthetically by the Server and the Explorer). You should be able to use it now with build 2 .6.6_05. In ... objectdb- 2 .6.3_04 JDK1.7 VM option at runtime: -javaagent:lib/objectdb.jar Experimental mode ... that can be referenced by ID, and meets a uniform and powerful IElement interface. - The BooleanValue is doing a heap | |
Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x steps 1. Update the package.jdo with an index defined 2 . Convert the old odb file 3. Connect ... defination and tried the following steps 1. Update the package.jdo with an index defined 2 . Convert ... 2 .x But still no improvement :-( Please try at ur side by running the query which i | |
Help: After upgrading from 2.2.8_02 to 2.2.8_04, can't perform LIKE query Hi, AFter the upgrade from 2 . 2 .8_02 (not sure if it was build 03/04 as I skipped 03 ... =false) OR ($1.conditionThree=false)))) Exception in thread "main" [ObjectDB 2 . 2 .8_04] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_26 (on Mac OS X 10.6.8 | |
Problem with distinct select, order by and equivalent alias/attribute path option of build 2 .6.5_03 for disabling the ORDER BY restriction checks:   ... mode I do not. 2 . Even if the exception is NOT thrown (as happening in embedded mode) the order by ... when ordering the results of some projection when the order by expression is different (though logically | |
java.lang.NullPointerException when using ORDER BY printed by your DB explorer tool when running the query: [ObjectDB 2 .5.4_03] Unexpected ... the ORDER BY ? prolancer Emil Andonov Thank you for the details. Please try build 2 .5.4 ... We are using ObjectDB 2 .5.1_04. The following query causes an internal null pointer exception | |
Cannot sort descending, when ordering by caluculated float in a method Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem ... this query: (I know, it's not very efficient...) select i from Invoice i order by i.getPrice() desc/asc ... ; i1.getItemList().add(new InvoiceItem( 2 , 2 ));   | |
Database Server database is accessed only by a single web application, it should be embedded in that application ... the server with no arguments displays the following usage message: ObjectDB Server [version 2 .9.4 ... Chapter 6 . You can override this by specifying a configuration path on the command line: $ java com | |
Entity Management Settings attribute specifies the size of the shared level- 2 cache that is managed by the EntityManagerFactory and shared by all its EntityManager instances. To disable the level- 2 cache, specify 0 or 0mb ... attribute specifies how non-enhanced classes are handled. ObjectDB can manage non-enhanced classes by | |
ObjectDB License . You are encouraged to test ObjectDB before purchasing a license. Server License ObjectDB 2 .x Server License costs £500 and includes all version 2 .x updates. A server license covers one installation ... a Server License Site License ObjectDB 2 .x Site License costs £2,500 and includes all version 2 .x | |
Logical Operators in JPQL and Criteria API the following table: Set 1: JPQL / SQL Set 2 : Java / JDO AND && OR || NOT ! JPQL uses SQL notation, while Java uses its own notation, which is also used by the JDO Query Language (JDOQL). ObjectDB ... , Boolean expressions are represented by the Expression interface and its descendants. For example | |
queries under 2.7.6_4 significantly slower than under 2.7.6. Step 2 : Process ObjectNode (v$1) instances (for every result of step 1 ... .objectNameUpper='SENKEN-LINIE-1'),(v$1.classIdentifier='(TC)'))). Step 3: Process ObjectProperty (v$ 2 ... above) ---------------------------------------------- [ Step 3a] Scan type com.agile.hummingbird.ObjectProperty locating ObjectProperty (v$ 2 ) instances | |
JPA Named Queries their named queries by using the JPA 2 Metamodel interface. For example: em. getMetamodel (). managedType ... named queries instead of dynamic queries can improve code organization by separating JPQL query ... , you should choose names carefully to avoid collisions, for example, by using the unique entity name as | |
JPA Persistence Unit is optional when using ObjectDB but required by JPA. Programmatic configuration (PersistenceConfiguration) Starting with JPA 3. 2 , it is no longer mandatory to use a persistence.xml   ... useful for microservices, dynamic environments, or applications where configuration is managed by | |
JPA Query API, which was the only query interface in JPA 1, and the TypedQuery interface, which was introduced in JPA 2 ... , which retrieves all Country objects from the database, is represented by both q1 and q2 . When you build ... JPA, building queries by passing JPQL query strings directly to the createQuery method is called | |
jakarta.persistence.EntityManagerFactory graphs Returns: a map keyed by graph name. Since: Jakarta Persistence (JPA) 3. 2 Map getNamedQueries ... of EntityManager . A persistence unit defines the set of all classes that are related or grouped by ... may be defined by a persistence.xml file, or it may be defined at runtime | |
jakarta.persistence.StoredProcedureQuery parameters for which default values have been defined by the stored procedure. When getResultList ... procedure query, followed by getUpdateCount . The results of executeUpdate ... set can be obtained by calling getResultList or getSingleResult . The hasMoreResults method | |
Database Explorer, you must specify the path to the file. Alternatively, you can run the Explorer by double-clicking explorer.jar ... a database path on the server, which you can do by using the Browse button. You can also open recently used databases from the File Recent Connections menu. By default, the Explorer automatically tries | |
jakarta.persistence.criteria.CriteriaBuilder. Since: Jakarta Persistence (JPA) 3. 2 Order asc ( Expression expression ) Create an ordering by ... compatible with varags. Since: Jakarta Persistence (JPA) 2 .0 The JPA Criteria API Queries article ... more restriction predicates Returns: and predicate. Since: Jakarta Persistence (JPA) 3. 2 Expression | |
Schema Update Chapter 2 , ObjectDB handles other schema changes automatically. Note: Use extreme caution ... the original name (specified by the required name attribute) to the new name. All classes in ... , the class name changes from the original name (specified by the required name attribute) to the new name | |
Defining a JPA Entity Class. Only the persistent state of the object, which is represented by its persistent fields , is stored. By default, any ... . The values of these fields are stored in the database when an entity is persisted. Chapter 2 provides | |
JPA Criteria FROM and JOIN is structured as follows: Criteria Query From Components in Jakarta Persistence (JPA) 3. 2   ... variables are represented in the Criteria API by subinterfaces of the abstract From interface: Defines ... FETCH virtual variables Fetch joins optimize performance by pre-fetching specified related data  | |
jakarta.persistence.Query that will be in effect during query execution. Since: Jakarta Persistence (JPA) 3. 2 CacheStoreMode ... . Since: Jakarta Persistence (JPA) 3. 2 int getFirstResult () The position of the first result the query object ... : position of the first result. Since: Jakarta Persistence (JPA) 2 .0 The Running JPA Queries article | |
jakarta.persistence.TypedQuery. See Also: Query Parameter Since: Jakarta Persistence (JPA) 2 .0 Chapter 4 - JPA Queries (JPQL / Criteria ... effect during query execution. Inherited from Query Since: Jakarta Persistence (JPA) 3. 2 CacheStoreMode ... . Inherited from Query Since: Jakarta Persistence (JPA) 3. 2 int getFirstResult () The position of the first | |
Mapped by fields are not initialized by JOIN FETCH in queries As demonstrated in this forum thread , a mapped by collection field with lazy fetch mode is not initialized in results of a query that uses JOIN FETCH on that collection field (when enhancement is used). support Support Build 2 .4.1_06 fixes this issue (fields are now initialized | |
JPA Entity Fields and final entity fields are always considered transient. You can declare other fields as transient by using ... -final entity field is persistent by default unless specified otherwise (for example, by using ... its methods or code. This state is reflected by its persistent fields, including fields inherited from | |
combined index not used the results of step 1e retaining only results that satisfy: (a.type=0). Step 2 : Process ObjectNode ... ---------------------------- Retrieve fields in ObjectNode (v$1) instances. Step 4: Process ObjectNode (v$ 2 ) instances ... )')),(v$ 2 .type=1)). [ Step 4b] Filter the results of step 4a retaining only results that satisfy: (v$1 | |
JPA Metamodel Types Jakarta Persistence (JPA) 3. 2 Base type definitions The core abstractions of model types ... inherited by entities but not being entities themselves. Represents an @Embeddable type, a managed type | |
JPA Extended API Reference Guide Jakarta Persistence API (JPA) 3. 2 documentation, generated from the official JavaDoc and enriched with practical notes. It groups the API types into logical sections to help you locate core concepts ... model and entity behavior. Documents the exception hierarchy thrown by JPA to indicate errors | |
Comparison in JPQL and Criteria API/SQL Set 2 : Java/JDO Less Than Less Than or Equal To = Equal To = == Not Equal To != The main ... . != ) operators. JPQL follows SQL notation, while Java uses its own notation, which is also used by JDOQL | |
ObjectDB Overview - managed only by standard Java APIs (JPA / JDO 2 ). Extremely fast - faster than any other JPA / JDO | |
2.9.x query issue with @Unique constraint: (u.userName=:userName). [ Step 2 ] Order the results of step 1 by : u. [ Step 3] Use NULL as a result ... for :userName parameter 2 .8.9 Query plan description ============================ [ Step 1] Scan type User locating all the User (u) instances. [ Step 2 ] Evaluate fields in User (u) instances. [ Step 3 | |
jakarta.persistence.AttributeConverter of the entity attribute Interface implemented by custom attribute converters . A converter is a class ... as the type of a persistent field or property, and a basic type used as an intermediate step in ... column for use by the JDBC driver: i.e., persistence providers are not expected to do such type | |
JPA Optimistic and Pessimistic Locking. When you use ObjectDB, optimistic locking is enabled by default and is fully automatic. Optimistic ... ;is modified, its version number is automatically incremented by one. Version numbers are managed internally but can be exposed by defining a version field . During commit (and flush ), ObjectDB checks | |
FROM clause (JPQL / Criteria API) By default, the name of an entity class in a JPQL query is the unqualified name of the class (for example, Country with no package name). The default name can be overridden by specifying another name ... to a single-value expression are less commonly used because they can usually be replaced by | |
Paths and Types in JPQL and Criteria API classes) are represented in JPQL by the following types of expressions: Variables : FROM ... persistent classes can participate in direct comparisons by using the = and operators ... by all six comparison operators and used for ordering . Navigation through path expressions A path | |
jakarta.persistence.EntityGraph Persistence (JPA) 2 .1 Public Instance Methods AttributeNode addAttributeNode ( String attributeName ... .. Since: Jakarta Persistence (JPA) 3. 2 AttributeNode addAttributeNode ( Attribute attribute ) Get an existing ... : IllegalStateException - if the EntityGraph has been statically defined. Since: Jakarta Persistence (JPA) 3. 2 void | |
each 1-2 days objects on some objectdb level lock/block each other above that hgzwicker Hans-Georg Zwicker Build 2 .7.5_03 includes an attempt to improve concurrency by replacing two main ... would prefer to go for a 2 step solution whete a first fast step would not need a change of the data model ... but before it is too late. I would prefer to go for a 2 step solution whete a first fast step | |
jakarta.persistence.Subgraph within an EntityGraph . See Also: EntityGraph AttributeNode NamedSubgraph Since: Jakarta Persistence (JPA) 2 .1 Public ... . IllegalArgumentException - if the attribute is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3. 2 ... has been statically defined. Since: Jakarta Persistence (JPA) 3. 2 void addAttributeNodes ( String | |
Query Parameters in JPA a Country object from the database by its name: public Country getCountryByName( EntityManager em ... a value for the parameter by using the setParameter method. The setParameter method supports method chaining by returning the TypedQuery instance on which it was invoked. This allows you to chain | |
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 All latest versions later 2 .4.5+ even 2 .4.5_05 doesn't work, it deployed but errors when running. But 2 .4.4 worked javax.ejb.EJBException at com.sun.ejb.containers.BaseContainer ... (AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:662) Caused by : com.objectdb.o | |
Blocked by find, Object obj)" method which is synchronized and attempts to load an object by id using the EntityManager ... : BLOCKED on rbccm.felix.objectdb.workflow.ObjectDbInstanceContainer@9c71a4 owned by : DEV1-WSAgent-1 ... @254e85f4 owned by : ODB-FileWriter Total blocked: 789 Total waited: 616 Stack trace: com.objectdb.o | |
Removed entities can be found by query in the same transaction (until commit). Build 2 .7.4_04 fixed it by creating a new snapshot on query execution if changes ... Hello, we opened a transaction, load an entity from database and removed this entity by em.remove(). Afterwards the entity can be load again by query although the resulted entity have an attribute | |
jakarta.persistence.Graph to EntityGraph and Subgraph . See Also: EntityGraph Subgraph Since: Jakarta Persistence (JPA) 3. 2 Public ... is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3. 2 AttributeNode ... Persistence (JPA) 3. 2 void addAttributeNodes ( String... attributeName ) Add one or more attribute | |
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 | |
Getting Started with JPA and Eclipse well (dialog boxes and menus might look slightly different but the code would be the same). This tutorial consists of the following steps : | |
Getting Started with JPA and NetBeans well (dialog boxes and menus might look slightly different but the code would be the same). This tutorial consists of the following steps : | |
ObjectDB 1.0 Manual technology by Sun Microsystems. The main purpose of this guide is to familiarise you with ObjectDB ... - About ObjectDB Describes ObjectDB's main features and editions. Chapter 2 - A Quick Tour Demonstrates ... class is and which types are supported by JDO. Chapter 4 - JDO Metadata Shows how to define JDO |