About package

forum_thread

Index on map key

Is there a way to create an Index with @Index on the key of a map? ... of embedded objects, as demonstrated below: package test ;     import java. util . *;   ...

 
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 5: Add a JSP Page

Explains how to add a JSP to an Eclipse Spring MVC JPA web application project.... by right clicking WEB-INF under src/main/webapp (in the [Package Explorer] window), selecting  New > Other... > Web > JSP ...

 
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

Merge with Parent/Child entities not possible

Can you please tell me why the following unit test ends with "[ObjectDB 2.5.7_02] javax.persistence.RollbackException"? ... 2.5.7_02] javax.persistence.RollbackException"? package example ;   import java. io . File ; import ...

 
forum_thread

Use of sequences to generate field values in JDO

I'm trying to use sequences to set field values in JDO.  I want to do this in XML metadata to avoid use of annotations. This is an example of what I'm trying:   <package name="com.spiffymap.sealog.model">         <sequence name="audit_seq" factory-class="java.lang.Long" strategy="contiguous"/>         <class name="Audit" identity-type="application"> ... This is an example of what I'm trying: <package name = "com.spiffymap.sealog.model" > <sequence name ...

 
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 ; ...