About package

forum_thread

Updating Entities

Hello, I'm currently writing a program using JavaFX and ObjectDB and I'm encountering a problem with Entities not sending their updates to each other. I have two Entities in question at the moment: Employee and Paygrade. ... controller classes for each of the models. Each controller package consists of Overview, Add, Modify, Delete. Overview uses a ...

 
forum_thread

Optimistic Locking

We are having problems with optimistic locking.  I made a simple test case to try to induce an optimistic lock.... (it should work the same way also in JPA 2): package com. objectdb . example ;   import java. util . ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in an Eclipse Spring MVC JPA web application project.... that file: Right click the WEB-INF node in the [Package Explorer] window, select  New > Other... > XML > XML File ... definitions --> <context:component-scan base-package = "guest" />   <!-- Use @Controller annotations for ...

 
manual

FROM clause (JPQL / Criteria API)

Explains how to use the FROM clause and JOIN expressions in a JPA/JPQL query.... name of the class (e.g. just Country with no package name). The default name can be overridden by specifying another name ...

 
tutorial

Spring MVC JPA Tutorial - Maven Project

The Spring MVC JPA tutorial for Tomcat / Jetty as a Maven project (download & run).... from the command line by: > mvn package jetty:run The current directory should be  guestbook-spring ...

 
forum_thread

LAZY @ManyToOne field functions as EAGER

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2]"cLazy"
 b.cEager:{C}[3]"cEager" ... @ManyToOne(fetch=FetchType.LAZY) ?   package com. greensoft . objectdb . test . console ;   ...

 
forum_thread

"No Persistence provider for EntityManager" in OSGI bundle.

Good Day. I seem to have gotten a bit stuck while developing an OSGI bundle with ObjectDB. Essentially it builds an OSGI bundle with an embedded instance of ObjectDB and then tries to deploy the bundle inside an application running an embedded OSGI server (Apache Felix). The STARTING phase seems to fail due to the below error. #1 2011-11-10 14:31 Good Day. I seem to have gotten a bit stuck while developing an OSGI bundle with ObjectDB. Essent ...

 
forum_thread

Automatic schema evolution causes ArrayOutOfBoundsException

Hi, I did 2 modification to our schema. Our schema looks like this: class Entity     - List<String> permissions class ServiceProvider extends Entity     - String name class Airline extends Entity     - String name     - String iata #1 2016-09-23 08:14 Hi, I did 2 modification to our schema. Our schema looked like this: class Entity ...

 
forum_thread

Is it possible to remove parent/child entities without refresh?

We have a big object tree in our project. If I use the entityManage.remove method a entityManager.refresh is necessary in order to have an updated object tree in memory. But entityManager.refresh is too slow for our project. Do you know a possibilty to remove parent/child entities without entityManager.refresh after the entityManager.remove operation? I have searched for a solution with the following unit test (See testRemoveVariant2()). But my approach works correctly. Do you have an idea? ... transaction: (error 613)). Do you have an idea? package example ;   import java. io . File ; import ...

 
forum_thread

Entity with java.util.Date column gives ClassCastException in BIRT

Copied a straightforward entity class from my coleague. Using Eclipse Kepler (Reporting) and stored it in ObjectDB 2.5.3_02. After creating an ObjectDB BIRT DataSource and a DataSet, entered a simple JPQL query to select the fields. Entity looks like this: ... to select the fields. Entity looks like this: package entity ;   import java. util . Date ; ...