Internal Website Search

101-150 of 200 results

Difference performance in ObjectDB Explorer and in java project

Hello, I am learning ObjectDB and i noticed that the queries that are executed in   ObjectDB Explorer are faster (about 5 ms) than queries in my project (~400 ms). Here is my JPQL ... are executed in the Explorer in a special lazy mode, which is faster in returning the results

DB reading fails in debug mode in Eclipse

on Linux. Here is the structure (JDO metadata) of 3 classes which I am storing as values in a HashMap of another entity in the DB.                   ... you can see the classes are not embedded, so they have their own extent and IDs in the DB

Accessiblity of attributes in entities in several OSGi-Bundles

. There are three entities in two OSGi-Bundles and we execute importRequirements() in RequirementServiceImpl ... .RequirementImportServiceImpl.addReq(RequirementImportServiceImpl.java:146) btc_es BTC EmbeddedSystems In another use case ... may indicate an attempt to access a new entity object that was persisted in one transaction from

Using Enum type in NamedQuery: Field is not found in type

I'm trying to switch an application that worked fine in Hibernate to ObjectDB and am having issues ... Type {     A,B,C } that is stored in an @Enumerated member variable private Type type ... in the following JPA Named Query @NamedQuery(name = "TestQuery",       

Fields in objects not populated in query result.

at some point in the past, but may have been a victim of an objectDB upgrade. dhosek Don Hosek A possible reason could be a partial enhancement. ObjectDB can populate fields in both enhancement mode and reflection mode but mixing modes is not supported and if some classes in the hierarchy

how to create in memery database in objectdb

plz can u give or help me how to create in memory database in objectdb   with example yadavanil anil yadav See answer in this forum thread  (also use that other thread for further discussion). support Support

Error in reading Enum in JPA - Failed to read using reflection

Error in reading Enum in JPA - Failed to read using reflection

A bug in the JDOQL processor in recent versions of ObjectDB

There seems to be a bug in the JDOQL processor in recent versions of ObjectDB. I've uploaded a "laptop" example to demonstrate the problem. The query in Test1.main should return "ThinkMachine MAX SX 20", but it returns incorrect "Media Central Media 555". Earlier versions (at least up to 2.5.4

ObjectDB License Agreement [ver. 2.0.4]

of this agreement will be binding, unless in writing and signed by an authorized representative of each party ... of this agreement. 2. The Customer is not allowed to modify the Software or any portion of it in ... of classes and objects in a database file s . The full edition of the Software (without the restrictions

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 ... database programming. A JPA implementation (sometimes referred to as a JPA provider) is needed in ... representation in the relational database (as tables and records) and the representation in the Java application

ObjectDB - JPA Object Database for Java

it is the bottleneck in most applications. ObjectDB is extremely fast and much faster than any other JPA ... database with JPA support in one product , sparing the need to integrate an external JPA ORM ... , and in minutes you will be able to run your first Java and JPA database driven application in Eclipse

JPA Metamodel API

The JPA Metamodel API, which is introduced in JPA 2.0, enables examining the classes, fields ... ) 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

Eclipse Distribution License - v 1.0

. Redistribution and use in source and binary forms, with or without modification, are permitted provided ... , this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in

Is ObjectDB better than competing object databases?

: ObjectDB is unique in supporting the standard APIs. It is the only object database with built in ... is also unique in supporting features that are usually available only in relational databases. For example, most object databases do not support user defined primary keys, even though this is very useful in

ObjectDB 2.9 Developer's Guide

you productive with ObjectDB and JPA in a short time. Guide Structure This manual is divided into ... ;      Shows how to define JPA entity classes that can be persisted in ... knowledge of database programming (SQL, JDBC, ORM or JPA) is not required in order to follow this guide

Entity Management Settings

The configuration element specifies front end settings that are relevant on the client side and in ... the reference type for holding non dirty entities in the persistence context of the EntityManager ... entities are always held by strong references in the persistence context (until commit or flush

ObjectDB Website - Terms and Conditions of Use

from using or accessing this site. The materials contained in this web site are protected by ... of these materials or upon the termination of this license, you must destroy any downloaded materials in your possession whether in electronic or printed format. Some materials on ObjectDB website

JPA Query Expressions (JPQL / Criteria)

the following operators ( in order of decreasing precedence): Navigation operator (.) Arithmetic operators ... : =, , =, IS [NOT] NULL, [NOT] BETWEEN, including  Collection operators: [NOT] IN , IS [NOT] EMPTY, [NOT] MEMBER [OF] and the [NOT] LIKE operator. Logical operators : AND, OR, NOT. In addition, JPA

JPA Queries

Queries are represented in JPA by the Query and TypedQuery interfaces: The JPA Query API section ( in chapter 4 of the ObjectDB manual) provides detailed explanation of how exactly to use ... that is known only at runtime (e.g. depending on which fields are filled by a user in a form

What are the main benefits of using ObjectDB?

. The ability to store ordinary objects in the database directly can simplify the code significantly ... to shorter time to market and saving in the total development time and costs. Improving Performance ... that ability and require multiple tables, multiple records and join operations in order to support

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node ( in the [Package Explorer] window), selecting ... connection) is constructed. If a new guest has registered (using a JSP form that is shown in

Step 5: Design a BIRT Report Chart

In this step we will add a simple chart to the report: Open the [New Chart] dialog box by dragging ... . In the [Select Chart Type] tab select Tube as the chart type and click Next . In the [Select Data] tab - enter row["y"] as the Y series and  row["x"] as the X series, (use Ctrl + Space in

Getting Started with JPA

will be straightforward. That is one of the benefits of ObjectDB, which is the only Object Database with built in support of JPA. The sample application is also explained in details in   Chapter 1 of the  ObjectDB Manual , but if you prefer to start by running a live sample application in your IDE

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node ( in the [Projects] window) and selecting New Servlet ... : If a new guest has registered (using a JSP form that will be added in the next tutorial step) - a new Guest

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node ( in the [Package Explorer] window), selecting  ... that will be added in the next tutorial step) - a new Guest entity object is constructed and stored in

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node ( in the [Projects] window) and selecting New Servlet ... (using a JSP form that is shown in the next tutorial step) - a new Guest entity object

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node ( in the [Package Explorer] window ... to process the web request: If a new guest has registered (using a JSP form that will be added in

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the tutorial package node ( in the [Projects] window ... objects in the database. Besides the @Entity annotation and the id field (and its annotations

Step 1: Create a Maven Web Project

We start by creating a new Maven-WTP dynamic web project  in Eclipse: Open the [New Project ... ; maven-archetype-webapp as a filter, select  maven-archetype-webapp in the artifact list and click ... of the new created project is contained in a  pom.xml file that was created in the project main

Step 3: Define an EJB Session Bean

that we will define in this step: Open the [New Session Bean] dialog box by right clicking the guest package node ( in the [Projects] window), selecting New Other... Java EE (or Enterprise JavaBeans) Session ... : persist - for storing a new  Guest entity object in the database. getAllGuests

Step 3: Define a Spring DAO Component

) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest package node ( in the [Projects] window under Source Packages) and selecting New ... - for storing a new  Guest entity object in the database. getAllGuests - for retrieving all the existing

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node ( in the [Projects] window) and selecting ... has registered (using a JSP form that will be added in the next tutorial step) - a new Guest entity

Step 3: Define a Spring DAO Component

) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest package node ( in the [Package Explorer] window) and selecting  New Class ... - for storing a new  Guest entity object in the database. getAllGuests - for retrieving

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node ( in the [Projects] window ... on " + signingDate + ")"; } } The new class should represent Guest objects in the database

Step 1: Create a Java Project

for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of project in this tutorial but rather an ordinary Java Project. In the [New ... ) and click Next . In the Libraries tab, click Add External JARs... and select the objectdb.jar file from

Step 3: Define an EJB Session Bean

that we will define in this step: Open the [New Java Class] dialog box by right clicking the guest package node ( in the [Package Explorer] window) and selecting New Class . The package name should be guest ... ) class defines two methods: persist - for storing a new Guest entity object in the database

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File] dialog box by right clicking the WEB-INF node under the Web Pages node ( in the [Projects] window ... the controller in the previous step). The next step (and the last in this tutorial) is setting the Spring XML configuration .

Step 4: Run the Application

You can run the application now by right clicking the Main node ( in the [Projects] window) and selecting Run File . The expected output in the [Output] window, is: Total Points: 1000 Average X: 499 ... , a new ObjectDB database file is generated in the db subdirectory under the ObjectDB installation

Spring MVC JPA Tutorial - IntelliJ Project

To open and run the  Spring MVC JPA tutorial project in Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the project in IntelliJ IDEA: Select  File ... ) at the top of the dialog box. In the Deployment tab select  + Artifact... Guestbook:war and click

Java EE JPA Tutorial - Maven Project

a simple Java/JPA database driven web application (for GlassFish 3/ JBoss 6) in   Eclipse or  ... . You will have to deploy the generated WAR file in your GlassFish server. You may also open and run the Maven project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node ( in the [Projects] window) and selecting New JSP ... that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in

Step 4: Run the Application

You can now run the application by right clicking the Main.java file ( in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window ... ) When you run the application for the first time, a new ObjectDB database file is generated in the db sub

Step 3: Add a Main Class

In this step we will add code to the Main class (that was generated with the project) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste ... .createEntityManager(); // Store 1000 Point objects in the database: em.getTransaction().begin(); for (int i = 0; i

Step 6: Design a BIRT Report Table

In this final step we will add a simple table to the report: Open the [Insert Table] dialog box by ... ) in the third field and click OK . Fill the table with data by dragging the x and y columns from the data set in the [Data Explorer] window (under the data set node) and dropping them on the second

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Java Class] dialog box, e.g. by right clicking the project node ( in the [Package Explorer] window ... to create the new class. The new class should represent Guest objects in the database. Use copy

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node ( in the [Projects] window) and selecting New JSP ... that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the WebContent node ( in the [Package Explorer] window), selecting ... from the request's "guests" attribute that is set by the servlet in the previous step). The next step

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File] dialog box by right clicking WEB-INF under src/main/webapp ( in the [Package Explorer] window ... the request's  guestDao attribute that is set by the controller in the previous step

JPA Web App Tutorial - IntelliJ Project

To open and run the  JPA Web Application tutorial project in IntelliJ IDEA: Download and extract the project zip file: JPA Web App - Maven Project (6KB) Open the project in IntelliJ IDEA ... and select Tomcat Server Local . Enter a name (e.g. Guestbook ) at the top of the dialog box. In

ObjectDB 1.0 Manual

and JDO in a very short time. Guide Structure The first two chapters introduce ObjectDB: Chapter 1 ... and transactions in JDO. Chapter 6 - Persistent Objects Shows how to store, retrieve, update ... database files in the database explorer. Prerequisite Knowledge A prior knowledge of database programming