ObjectDB Database Search
51-100 of 200 resultsWrong data stored in time only fields This may be related to the fix for the problem described in this thread: Wrong data stored in date ... . Except we are using ObjectDB 2.6.4_08, the system time zone is set to EST and both the OS and JVM are using the 2015g time zone data . While we cannot see a problem with date only fields (more testing | |
can not use spring-data-jpa repository with NamedQuery in spring- data -jpa named queries are used to implement repository interface methods, see http://static.springsource.org/spring- data / data -jpa/docs/current/reference/html/#jpa.query-methods.named ... of f.bars") public class Foo implements Persistable { private Set bars | |
Query vs Extent for retrieving data I'm running into a problem where data that is retrieved via a Query comes out null, but when I ... have a test file with 5 instances of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB explorer that all of the data | |
Glassfish 4 JTA Data Source Support supported as well as conventional data source setting . If you create a basic data source implementation ... I would like to have the persistence.xml of my server application (REST service) use a JTA data source, so that I can configure the data source from the app server (Glassfish 4 in my case).   | |
java.lang.ClassCastException in OSGi runtime when loading data from DB ClassCastExceptions on my "entity" classes when I try to read data from the DB. In a very old (2011?) forum ... . The entity obviously has to get loaded by all bundles in order to manipulate the data . This is the code ... would mean doubling the classes and having to move data around between the Entities and DTOs. Many | |
Import data from MySQL Hi, I tried the objectdb in my research, find it very easy to handle without setting up xml files ... mysql data into objectdb? gzdillon Lai Yang Currently to import data from other databases ... data from MySQL using JPA as entity objects, detach the retrieved entity objects and then persist | |
Retrieve data of all entity classes in a single query I have in an objectdb file 10 Entity Classes with some data in each (Athlete, Trainer, Stadium etc) This is the code I use to retrieve all Managed Types and data for the Athlete class Metamodel metamodel = em.getMetamodel(); Set allManagedTypes = metamodel.getManagedTypes(); for(ManagedType o | |
Wrong data stored in date only fileds wrong data in the fields annotated with Temporal.DATE. The attached DB shows the problem and can easily be reproduced. Here are the values used to set the fields before adding the objects (in ... 1970 In the DB you will notice that the startDate field is set to "Sat Oct 24 00:00:00 CEST | |
data protection method in ObjectDB Embedded Mode I am new in ObjectDB and i need to understand How is data protection in ObjectDB Embedded Mode without using username or password thanks choymns choymns The way to keep an ObjectDB database ... using a CPU that supports the AES instruction set . support Support | |
How to delete a specific column data form a entity. query instead and set the field (column) to null . support Support Ok Tank you Manoj Manoj Kumar Maharana | |
Pessimistic Lock Timeouts setting.objectdb.o._LockTimeoutException: Write lock cannot be granted for a.b.c.d.EE#150. irrespective if I set ... setting a shared lock in the EJB could get around this, but this would be global and impact all threads ... on stale updates. Willks William Support of pessimistic lock timeout setting ( javax.persistence | |
Fetch Set from DB only works on debug mode the EntityManager . In debug mode, by examining the set you load the data before closing the EntityManager ... to fetch that hash set , it returns a null pointer. BUT, when I run the program in debug mode, it works fine ... , i will open a support ticket. elnll002 Facundo Curti This is not a bug. Lazily loaded data | |
-XMX settings recommendation The default is 256M what is the recommended settings based on? It is the size of the DB? number of connections? If the DB has over 200GB of data and max connection of 400 then will I need to make this settings higher? Thanks. Trianglehead Json Error There is no magic | |
NullPointerException while setting a new property value to entities from 2 threads: 1. Creating a list of entities, default values are set from imported file 2 ... and re- setting some properties to entities from the collection. NPE is thrown at some point while database thread is writing new data . I guess that the enhanced code should handle it somehow.   | |
Set timeout for BatchQueryItr ( unknown source ) xirt Sylvain You can set a query execution timeout as a query hint . The many BatchQueryItr files may indicate a complex query on a lot of data with no sufficient indexes | |
Iterating over large result set Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. for (int page=0; page | |
JPA Connections and Transactions of the database file on the server, relative to the server data root path. Connection URL Parameters ... database. However, to avoid accidental data loss, the drop parameter is ignored unless the database ... the database (such as storing, updating, or deleting data ) must be performed within an active transaction | |
jakarta.persistence.StoredProcedureQuery may be controlled in accordance with the following: The setParameter methods are used to set the values of all required IN and INOUT parameters. It is not required to set the values of stored procedure ... back only via INOUT and OUT parameters as well as the most general case (multiple result sets and/or update | |
Deleting JPA Entities that references an Address entity. Because of the CascadeType.REMOVE setting , when an Employee ... =true , specifying CascadeType.REMOVE is redundant. The difference between the two settings is how they handle a disconnected relationship, for example, when you set the address field to null or | |
Best practise loading big data is the main data provider within our solution. In the past we often discovered performance problems ... data access on a large 2 dimansional table. Internally we used a list entities which hold a list ... . Creating and traversing. For the traversing we access the data block by block - in each block step by | |
jakarta.persistence.PersistenceConfiguration.persistence.schema-generation.scripts.action" is set . Since: Jakarta Persistence (JPA) 1.0 SCHEMAGEN ... when "jakarta.persistence.schema-generation.scripts.action" is set . Since: Jakarta Persistence (JPA) 1.0 ... . Since: Jakarta Persistence (JPA) 1.0 PersistenceConfiguration properties ( Map properties ) Set multiple | |
JPA Class Enhancer (for example, the get and set methods). If you follow this practice, only user-defined persistable ... argument. Setting a Java agent enhancer in an IDE In Eclipse, JVM arguments can be set globally in ... in: Run Configurations… Arguments VM arguments In NetBeans, JVM arguments can be set in the project | |
WHERE clause (JPQL / Criteria API) and an official language from a specified set of languages: SELECT c, l FROM Country c JOIN c.languages l ... the WHERE clause. WHERE in criteria queries The CriteriaQuery interface provides two where methods for setting ... it as the WHERE clause predicate, overriding any previously set predicate. For example, the following | |
SQL Queries Annotations Jakarta Persistence (JPA) provides a set of annotations to define and map native SQL queries ... dialect. Groups multiple @NamedNativeQuery definitions on a single class. Result set mapping Map ... how the result set of a native query maps to entities, scalar values, or constructor results. Groups | |
Chapter 6 - Configuration . You can also define $objectdb explicitly by setting the objectdb.home system property: System.setProperty("objectdb.home", "/odb"); // new $objectdb As with any other system property it can also be set as ... setting the "objectdb.conf" system property: System.setProperty("objectdb.conf", "/my/objectdb.conf | |
JPA Criteria API Queries a TypedQuery instance, query execution and settings are similar, regardless of how the query ... the query parameter. The where method sets the WHERE clause. As shown, the CriteriaQuery interface supports method chaining. For details on setting clauses and building expressions, see the links in | |
GROUP BY and HAVING clauses methods for setting the GROUP BY and HAVING clauses. For example, the following JPQL query: SELECT c ... version of groupBy accepts a list of expressions. Setting a HAVING clause is similar to setting ... , which are combined using an AND conjunction. When the groupBy or having method is called, any previously set values are discarded. | |
SSL Configuration The configuration element specifies Secure Sockets Layer (SSL) settings for secure client-server ... of the ssl element, which can be set to true or false , specifies whether SSL is used. As shown in ... keystore can be different from the server keystore. Setting the Configuration To use SSL, the enabled | |
ObjectDB - JPA Object Database for Java when the object data model is complex. See JPA benchmark results... Reduce development time. Improve ... Persistence API (JPA) Java Data Objects (JDO) Using a standard Java API (JPA / JDO) provides many benefits | |
Chapter 2 - JPA Entity Classes Entity class is a user-defined class whose instances can be stored in a database. To store data in an ObjectDB database by using Jakarta Persistence (JPA), you define entity classes that represent your application's data object model. This chapter contains the following sections: | |
JPA Relationships Annotations how the persistence provider propagates operations and loads related data using these enumerations: Specifies ... whether related data is loaded immediately ( EAGER ) or on-demand ( LAZY ). Collection configuration Configure | |
Enum fields are set to null and embeddable enum class does not show in explorer in the related objects is set to null. This is highly critical because it will cause data loss ... before, this is a highly critical issue and it will lead to data loss for users updating to 2.8.2 ... critical issue and it will lead to data loss for users updating to 2.8.2. If this is indeed just | |
com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection. set (platformConnector); } ... } I get an exception thrown when trying to create an entity ... ._PersistenceException: Failed to locate set method for field property domain.PlatformTicker.platformConnector using ... can open the database and browse the data . It seems odd that the error message should complain about field | |
Storing JPA Entities setting up automatic cascading persist operations. Cascading persist Marking a reference field ... . Because of the CascadeType.PERSIST setting , when an Employee instance is persisted, the operation is automatically ... . You can do this either by setting the ObjectDB configuration or, in a JPA-portable way, by specifying the cascade-persist | |
Logical Operators in JPQL and Criteria API Logical operators in JPQL and JPA criteria queries combine simple Boolean expressions to form complex expressions. Logical operators ObjectDB supports two sets of logical operators, as shown in the following table: Set 1: JPQL / SQL Set 2: Java / JDO AND && OR || NOT ! JPQL uses SQL notation | |
JPA Components Annotations the class as a mapped superclass. Its persistent attributes (fields and properties) and their settings ... ). Use these annotations to configure the access type: Sets the access type (FIELD or PROPERTY ... caching: Specifies whether the entity is eligible for the second-level cache. Set to true or false | |
JPA Persistence Unit, embeddable classes, and mapped superclasses) and their related settings . Defining a persistence unit ... classes using .managedClass(). Set Properties: Pass database credentials and provider-specific settings . Avoid XML: Completely bypass the need for a META-INF/persistence.xml  | |
jakarta.persistence.TypedQuery query. PersistenceException - if the query execution exceeds the query timeout value set ... execution exceeds the query timeout value set and only the statement is rolled back. Since: Jakarta ... result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query | |
jakarta.persistence.Query value set and the transaction is rolled back. TransactionRequiredException ... - if the statement execution exceeds the query timeout value set and only the statement is rolled ... was set to retrieve. Returns 0 if setFirstResult was not applied to the query object. Returns | |
JPA Metamodel Attributes: COLLECTION , SET , LIST , or MAP . Represents an attribute typed as a generic java.util.Collection . Represents an attribute typed as a java.util. Set , implying unique elements without a specific order | |
ORDER BY clause (JPQL / Criteria API) queries The CriteriaQuery interface provides methods for setting the ORDER BY clause. For example ... . get ("population"))); Unlike other methods for setting criteria query clauses, the orderBy method accepts | |
ObjectDB License Agreement [ver. 2.0.4] to loss of revenue, profit or data ) however caused and regardless of the theory of liability, arising | |
Is ObjectDB better than competing object databases? of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA | |
Index Definition is an ordered map data structure that ObjectDB maintains in the file system, not in memory. The B | |
Spring MVC JPA Tutorial - IntelliJ Project the Server: Select File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat ... +F10 ). If the browser fails to open check the settings at File Settings Web Browsers . | |
JPA Web App Tutorial - IntelliJ Project: Select File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat ... at the toolbar and click the green run icon (or Shift+F10 ). If the browser fails to open check the settings at File Settings Web Browsers . | |
Java EE 6 JPA Tutorial - IntelliJ Project directory and click OK . Define the Server: Select File Settings Application Servers . Add Tomcat 6 Server if not set already (Tomcat has to be downloaded separately). Define Run Configuration ... and click the green run icon (or Shift+F10 ). If the browser fails to open check the settings at File Settings Web Browsers . | |
Report Generation with BIRT and JPA This tutorial demonstrates how to create reports based on data in an ObjectDB database using the popular open source Business Intelligence and Reporting Tools (BIRT). In order to keep things as ... , 12), ..., (20, 20) The data will be presented in the BIRT report using a chart and a table: | |
Step 5: Add a JSP Page that have already signed (which are retrieved from the request's guestDao attribute that is set by the controller in the previous step). The next step (and the last in this tutorial) is setting the Spring XML configuration . | |
Step 5: Add a JSP Page the request's guestDao attribute that is set by the controller in the previous step). The next step (and the last in this tutorial) is setting the Spring XML configuration . |