About retrieve

forum_thread

Import data from MySQL

Hi, I tried the objectdb in my research, find it very easy to handle without setting up xml files. However, I cannot find the import/export functions between other database, then how can I transfer mysql data into objectdb? When I use explorer.exe to browse the database in objectdb, eclipse tells me another app occupy it, then how can objectdb support multi-thread? ... own conversion program. If you use JPA with MySQL you can retrieve old data from MySQL using JPA as entity objects, detach the retrieved ...

 
issue

[Explorer] Executing Queries

The new Explorer of ObjectDB 2 supports retrieval of database objects by classes and navigation. Retrieval of database objects by executing queries should also be supported. This is one of the features that have been supported by the old Explorer of ObjectDB 1.It has been temporarily removed due to incompatibility with the new ObjectDB 2 code base. Feature Request Version: Priority: High Status: Fixed Replies: 1 Type:  Feature Request ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in a NetBeans Java EE web application. Operations on the database will be performed by an instance of a session bean (EJB) class 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), sel ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application. Operations on the database will be performed by an instance of a session bean (EJB) class 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 selec ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in an Eclipse Spring MVC JPA web application project. Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest packa ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in a NetBeans Spring MVC JPA web application project. Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right clicking the guest packa ...

 
forum_thread

Bidirectional OneToMany is slow on updated items

Hello, I have a problem with the following situation. I insert persons with addresses. In the first run, they are all new with a new address. It runs fast. In the second run, the persons are all loaded and got a second address. This seams to be much slower. The Entities are all enhanced by the javaagent (which you can see in the contained eclipse launch configuration) Is there any way to speed it up?       #1 2013-02-22 10:02 Hello, I have a problem with the following situation. I insert persons with addresses. In the fir ...

 
doc

Throwable(message, cause)

Constructs a new throwable with the specified detail message and cause.(Constructor of java.lang.Throwable)

 
forum_thread

Remove an entity which attributes were changed - OptimisticLockException

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock exception of the removed entity. If this operations on the entity are executed in only one plugin, it works well. #1 2016-04-14 13:06 We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded ...

 
forum_thread

Problem on JPA Merge Entity.

Hello, I have a problem with the EntityManager.merge() function. I set a property value of an entity (statement) with an other entity (newSingleConstraint). newSingleValue is already persisted. I do this myself (no use of cascade because sometimes the newSingleValue is already in database).   The statement update don't throw exception. And when i try to reload statement the value i have set before is a null value. I check with the Explorer, the statement has a null value on the property and the newSingleValue is present.... statement. Works! testUpdate Retrieve statement from database, retrieve some element from database, create a new component, save new ...