Internal Website Search
51-100 of 200 resultssetting activation code in persistence.xml or env file or system properties Wondering if it's possible to add the activation code either: - in persistence.xml - or in a .env file - or system properties dmoshal David Moshal These options are not supported. However, you can embed the configuration file with the activation code as a resource, e.g. by replacing the objectdb | |
Programatic configuration or configuration file loaded from classpath or file classloader? If one or both are possible, could you please give some examples? Thanks a lot! itsme Martin | |
zip file or JAR manifest missing I found the message: Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar Some of projects can read the DB, but others can not read or write the DB. Exception in ... more Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar | |
using objectdb.jar in writing data to mariadb or mysql db (for desktop version) and python or php for the web version but i want to code queries in native java ... to mariadb or mysql using native java JPA API and in some cases JPQL or must i store to an Objectdb unique ... . You cannot use to write to MySQL or MariaDB (as you cannot use PostgreSQL to write to MySQL). You can use | |
EntityManager JPA or JDO impl and different behavior the persistance.xml or is something in the spring is doing something I don't understand? Or have I missed ... " is called, the object is being lazy loaded. So if the "equals" or "hashcode" method use more than the database id for generation or comparison, it all fails horribly. Have a look at the output from | |
OR not working with isNull); Predicate ownerIsNull = cb.isNull(root.get("owner")); Predicate ownerMatchesOrIsNull = cb. or (ownerIsNull, isOwnedByUser); The isNull predicate will only match records when NOT inside the OR predicate. The other predicate works normally within or outside the OR . bhamilton Bruce Hamilton Your query | |
URGENCY, or in query does not report any objects on first operand having no results operand: select a from Action a where (a.state = 2 or a.state = 3) and a.type = 0 and a.transferred = 0 if the query is changed to select a from Action a where (a.state = 3 or a.state = 2) and a.type = 0 and a.transferred = 0 there are all the results for the condition a.state = 3 it seems that the or | |
@OneToOne query issue with OR and IS NULL A where another is null OR another.counter = 0 " What I expected to get where the 2 entities I ... : SELECT FROM A WHERE another IS NULL OR another.counter = 0 is a short form of the this equivalent query: SELECT a FROM A a JOIN a.another b WHERE a.another IS NULL OR b.counter = 0 You missed | |
Eager Fetch is not stable for collection or map types? Hi, thanks very much for your helpful software. The problem is the storage of collection or ... there is no known open bug that can cause this problem (including in using or not using generics ... is we confirm that the collection or map are stored successfully by using explorer tools when the JVM | |
Corrupted Database or error in ObjectDBExplorer?). Can you analyze the problem and tell us if its a problem of the explorer or a real problem in ... to open the Tree or Table Window for com.btc.ep.analysis.test.bl.internal.dmos ... ) available in the the classpath (either in the Explorer or using your application) in order to update | |
Comparison in JPQL and Criteria API - JPQL / SQL Set 2 - Java / JDO Less Than Less Than or Equal To = Equal = == Not Equal ... are always evaluated to TRUE , FALSE or NULL . When both operands are not NULL (not shown in the table) the operator is evaluated to either TRUE or FALSE , and in that case, == is equivalent to = and != is equivalent | |
JPA Criteria API Queries the EntityManagerFactory 's getCriteriaBuilder method or by the EntityManager 's getCriteriaBuilder method ... . getResultList (); The setParameter method takes a Parameter ( or a ParameterExpression ) instance as the first argument instead of a name or a position (which are used with string based JPQL parameters | |
SELECT clause (JPQL / Criteria API) are extracted from ( or projected out of) entity objects to form the query results. The results ... that update or delete entity objects, in which managed entity objects are needed. Managed entity ... to using select with one of the factory methods ( array , tuple or construct ) as demonstrated | |
JPA Queries these interfaces to build and run JPQL queries. The TypedQuery interface ( or alternatively the older Query ... a TypedQuery or a Query instance. Building a dynamic query using the criteria API is managed by the  ... the EntityManagerFactory 's getCriteriaBuilder method or by the EntityManager 's | |
What is ObjectDB? or convert objects to records/records to objects using SQL or ORM, as opposed to when using relational database systems (RDBMS), such as Oracle, DB2, SQL Server or MySQL. | |
Shared (L2) Entity Cache can also be enabled or disabled using a persistence unit property:   ... explicitly. For example: @Cacheable // or @Cacheable(true) @Entity public class ... when the database might be updated by other applications ( or using other EntityManagerFactory instances | |
ObjectDB Object Database Features Requirements Windows, Linux, Unix, Mac OS, and most other OS with Java support. Java 8 or higher Tested ... API - any user with some experience with Hibernate, TopLink, EclipseLink, OpenJPA, JPOX or ... - a single @Id field. Composite primary key - multiple @Id fields or a @EmbeddedId field | |
Server User List . The admin attribute (whose value is "true" or "false" ) specifies if the user is a superuser ... itself cannot be used to connect to the database. The element Every element may contain one or ... is still allowed to view the directory content (using the Explorer) but cannot open database files or | |
ORDER BY clause (JPQL / Criteria API) method takes a variable number of Order instances as arguments ( or a list of Order ... , which adds order direction - either ascending (ASC) or descending (DESC). The CriteriaBuilder 's asc and desc methods (which are demonstrated above) take an expression and return an ascending or descending Order instance (respectively). | |
JPA Query Expressions (JPQL / Criteria), [NOT] MEMBER [OF] and the [NOT] LIKE operator. Logical operators : AND, OR , NOT. In addition, JPA ... ( equal , notEqual , gt , ge , lt , le , between , isNull , ...) Logical expressions ( and , or , not , isTrue ). | |
What are the system requirements for using ObjectDB? ObjectDB requires Java 5 or later (Java 6 is preferred). As a pure Java application, ObjectDB should be able to run on any platform that supports the Java Standard Edition. Either the Java Development Kit (JDK) or the Java Runtime Environment (JRE) can be used. A version of ObjectDB for .NET is currently under development. | |
JPA Query Structure (JPQL / Criteria). JPQL keywords, for example, can appear in queries either in upper case (e.g. SELECT) or in lower ... declares one or more query variables (also known as identification variables). Query variables | |
Numbers in JPQL and Criteria Queries, which is always a positive number or zero. For example: ABS(-5) is evaluated to 5 ABS(10.7) is evaluated ... must be a criteria numeric expression. The other operand may be either another numeric expression or a simple | |
JPA Named Queries to exactly one entity class or mapped superclass - usually to the most relevant entity class ... queries. Notice that named queries may be attached to any entity class or mapped superclass | |
How to install ObjectDB? ObjectDB is distributed as a zip file. Just download and extract the ObjectDB distribution zip file. No need to run any install or setup program. You can uninstall ObjectDB by deleting the ObjectDB directory. ObjectDB does not modify the registry or any other system file. | |
Is ObjectDB better than Object Relational Mapping (ORM)? of a relational database is mandatory (e.g. as a result of a customer request or when a new application ... performance and use a JPA ORM provider (Hibernate, TopLink, EclipseLink or DataNucleus) to access relational | |
Criteria Query Selection and Results interface is a thin wrapper around Expression , which adds order direction - either ascending (ASC) or ... an ascending or descending Order instance (respectively). See the ORDER BY in Criteria Queries section  | |
BIRT/ODA ObjectDB Driver connection URL - either embedded (e.g. c:\points.odb ) or client-server (e.g. objectdb ... ) and click Next . Entry a JPQL or a JDOQL query and click Finish . See the Report | |
UPDATE SET Queries in JPA/JPQL variable (with or without an explicit variable name) for iteration. Multiple variables and JOIN are not supported. The SET clause defines one or more field update expressions (using the range | |
Online Backup An ObjectDB database can be backed up by simply copying or archiving the database file while the database is offline (i.e. when it is not open in an ObjectDB server and not in use by any application ... ( em ) that represents the connection (local or remote) to the database:   | |
JPA Persistence Unit. One persistence.xml file can include definitions for one or more persistence units. The portable way ... explicitly by using class elements (for single class registration) or jar-file elements | |
Working with JPA Entity Objects the Configuration chapter. By default, managed entity objects that have not been modified or removed ... references or soft references instead of weak references . The contains method can check if a specified | |
Logical "or" works not correcly when field is @Id and first position The following code doesn't respect the logical " or " correctly. Instead of returns all 2 datasets it returns only this one, which matches the first predicate in the or . BUT: this happens only, if the field for the " or " is the first one defined as @Id. public class OrTest {   | |
Unexpected Exception (java.lang.NullPointerException: Cannot invoke "com.objectdb.o.ORS.Z9()). ORS .Z9()" because " " is null at com.objectdb.o.MSG.a(MSG.java:77) at com.objectdb.jpa.EMImpl.commit ... :833) Caused by: java.lang.NullPointerException: Cannot invoke "com.objectdb.o. ORS .Z9 ... : (No such file or directory) at java.base/java.io.RandomAccessFile.open0(Native Method) at java.base | |
Step 2: Entity Class and Persistence Unit) and selecting New Entity Class ... ( or New Other... Persistence Entity Class and clicking Next ). Enter ... clicking and selecting Edit or by double click and then moving to the Source or XML tab in | |
NetBeans/JPA Spring MVC Web Tutorial NetBeans - using JPA, ObjectDB, Tomcat ( or GlassFish) and Maven. The demo web application ... the following software: Java JDK 6.0 ( or above). NetBeans (Java or All bundle). The tutorial | |
Eclipse/JPA Spring MVC Web Tutorial Eclipse - using ObjectDB, JPA, Tomcat ( or GlassFish) and Maven. The demo web application manages ... the following software: Java JDK 6.0 ( or above). Eclipse IDE for Java EE Developers. m2eclipse | |
JPA Web App Tutorial - Maven Project The JPA Web Application tutorial provides step by step instructions on how to build a simple Java/JPA database driven web application (for Tomcat / Jetty) in Eclipse or NetBeans ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty | |
JPA Web App Tutorial - NetBeans Project Project . Run the project: Select Run Run Main Project... ( or F6 ). Choose or define the server and click | |
Step 3: Add a Context Listener Class a ServletContextListener to perform initialization and cleanup operations: The database will be opened ( or ... . The database will be closed when the web application stops ( or when the web server shuts down), by | |
Getting Started with JPA and Eclipse . For this tutorial, besides the Java JDK (8 or above) and the Eclipse IDE (either Eclipse IDE for Java EE Developers or Eclipse IDE for Java Developers), you only need to download and extract the ObjectDB | |
NetBeans/JPA Web Application Tutorial you will need the following software: Java JDK (6.0 or above). NetBeans - Java or All bundle The last version | |
Java EE Web Tutorial (session beans) it requires a full Java EE 6 application server, such as GlassFish 3.0.1 or JBoss AS 6. If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty | |
Java EE 6 JPA Tutorial - NetBeans Project and click Open Project . Run the project: Select Run Run Main Project... ( or F6 ). Choose or define the server and click OK . If a browser is not opened - open it at http://localhost:8080/Guestbook/. | |
Step 2: Entity Class and Persistence Unit) and selecting New Entity Class ... ( or New Other... Persistence Entity Class and clicking ... a text editor (by right clicking and selecting Edit or by double click and then moving to the XML | |
Spring MVC JPA Tutorial - Maven Project The Spring MVC JPA tutorial provides step by step instructions on how to build a simple Java/JPA Spring MVC database driven web application in Eclipse or NetBeans . Building a new ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty | |
Step 3: Add a Context Listener Class a ServletContextListener to perform initialization and cleanup operations: The database will be opened ( or ... an EntityManagerFactory . The database will be closed when the web application stops ( or when the web server shuts | |
Spring MVC JPA Tutorial - NetBeans Project Project . Run the project: Select Run Run Main Project... ( or F6 ). Choose or define | |
[ODB1] Chapter 2 - A Quick Tour // Create or open a database and begin a transaction: 12 PersistenceManager pm = 13 Utilities ... file named either package.jdo (generic name) or Person.jdo (name of the class). More details ... is reached it is recommended to use closeAll() (line 44) or close( ... ) to release resources. Lines 46-47 | |
JDO External Listeners The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level. |