Internal Website Search

51-100 of 200 results

Wrong 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

What is the Java Persistence API (JPA)?

) is that in JPA data is represented by classes and objects rather than by tables and records as in JDBC. Using plain old Java objects (POJO) to represent persistent data can significantly simplify ... . These implementations are Object Relational Mapping (ORM) tools. The mapping bridges between the data

Chapter 6 - Configuration

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 an argument to the JVM ... file is loaded from $objectdb/objectdb.conf . You can specify an alternative path by setting

JPA Class Enhancer

should be used (e.g. by using the get and set methods). If you follow this practice only user defined ... server has to be run with the Java agent JVM argument. Setting a Java Agent Enhancer in the IDE In Eclipse JVM arguments can be set globally at: Window Preferences Java Installed JREs Edit Default VM

WHERE clause (JPQL / Criteria API)

that exceeds a specified limit and also have an official language from a specified set of languages ... two where methods for setting the WHERE clause. Single Restriction The first where method takes one Expression argument and uses it as the WHERE clause content (overriding previously set WHERE content

Deleting JPA Entity Objects

. Due to the CascadeType.REMOVE setting , when an Employee instance is removed the operation is automatically ... =true is specified, CascadeType.REMOVE is redundant. The difference between the two settings is in the response to disconnecting a relationship. For example, such as when setting the address field

JPA Criteria API Queries

are represented by a TypedQuery instance - query execution  and query setting  is similar ... . The where method sets the WHERE clause. As shown above, The CriteriaQuery interface supports method chaining. See the links in the next sections of this page for detailed explanations on how to set

GROUP BY and HAVING clauses

and HAVING in Criteria Queries The CriteriaQuery interface provides methods for setting the GROUP BY ... another form of groupBy ). Setting a HAVING clause is very similar to setting a WHERE clause . As ... (and uses an AND conjunction). When a  groupBy or a  having method is invoked, previously set values (if any) are discarded.

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

DELETE Queries in JPA/JPQL

, which are used to retrieve data from the database, DELETE queries do not retrieve data from

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

JPA Entity classes are user defined classes whose instances can be stored in a database. To store data in an ObjectDB database using JPA you have to define entity classes that represent your application data object model. This chapter explains how to define and use entity classes. 

Database Connection using JPA

to the server data root path. Connection URL Parameters The following parameters are supported as ... of losing data - the drop  parameter is ignored unless the database file name extension indicates

Storing JPA Entity Objects

object or alternatively by setting automatic cascading persist. Cascading Persist Marking a reference ... , which is another entity class. Due to the CascadeType.PERSIST   setting , when an Employee instance ... reference field, it can be specified globally for any persistent reference, either by setting

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and in JPA criteria queries enable composition of complex JPQL boolean expressions out of simple JPQL boolean expressions. Logical Operators ObjectDB supports 2 sets of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR

SSL Configuration

The configuration element specifies Secure Sockets Layer (SSL) settings for secure communication ... has to be installed on the server machine. Setting the Configuration     To use SSL the enabled attribute of the ssl  element has to be set to true . Every Keystore / Truststore file

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

Detached Entity Objects

an instance of Address , which is another entity class. Due to the CascadeType.DETACH setting ... setting , when an Employee instance is merged the operation is automatically cascaded

JPA Query Structure (JPQL / Criteria)

FROM ... [WHERE ...] UPDATE ... SET ... [WHERE ...] Besides a few exceptions, JPQL is case insensitive ... . Organization of this Section This section contains the following pages: Detailed explanations on how to set

JPA Metamodel API

) in the persistent object model are represented by the following sets of interfaces and enum types ... in the above sets extend the Bindable interface, which may be used in defining criteria query

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly (as fields) or indirectly (as properties and get/ set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

ORDER BY clause (JPQL / Criteria API)

Criteria Queries The CriteriaQuery interface provides methods for setting the ORDER BY clause ... (c. get ("population"))); Unlike other methods for setting criteria query clauses - the orderBy

Step 1: Install BIRT and ObjectDB Driver

We start by installing the BIRT development environment and the ObjectDB data source driver. Installing BIRT Choose one of the following options to install the BIRT development environment: Download ... the ObjectDB Data Source Driver To install the ObjectDB data source driver for BIRT: Open the [Install

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, 12), ..., (20, 20) The data will be presented in the BIRT report using a chart and a table: The tutorial consists of the following steps: 

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 .

javax.jdo.Query

(String  data ) Specifies what type of data this query should return. If this is unset or set to null ... to obtain persistent instances, values, and aggregate data from the data store. The PersistenceManager ... declareImports (String imports) Set the import statements to be used to identify the fully qualified name

[ODB1] Chapter 2 - A Quick Tour

The data structure of this program is an ArrayList containing String instances. ObjectDB, as a pure object database, can simply store a memory data structure in the database as is. If the database is not

[ODB1] Chapter 7 - JDOQL Queries

cls, String filter) In the first form, the candidate class is automatically set to the class of the specified candidate Extent , and in the second form, the candidate collection is automatically set ... : Calendar calendar = Calendar.getInstance(); calendar.clear(); calendar. set (2000, 0, 1); Date date

[ODB1] Chapter 6 - Persistent Objects

time. When using data store transactions (which is the default in ObjectDB), there is a strong

ObjectDB 1.0 Manual

Welcome to the ObjectDB for Java/JDO Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JDO (Java Data Objects), the revolutionary database programming technology by Sun Microsystems. The main purpose of this guide is to familiarise you with ObjectDB