About retrieve

issue

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

I have marked this as CRITICAL because although there probably is no database integrity problem, the inability to robustly query relationship fields in a web application renders the ObjectDB system seemingly useless. objectdb-2.2.5_10 NetbeansIDE6.9.1 Glassfish3.01 client-server mode. odb file written to db-files/greendesk/greendesk.odb (see persistence.xml), copy of odb output attached. ... at: http://www.objectdb.com/java/jpa/persistence/retrieve EITHER: the transparent activation is failing AND/OR: ...

 
forum_thread

How to add minutes to a Date with JPA2

Hi,  I have to sum to a date of minutes, and check the date obtained is greater than the current date. My idea is as follows: Calendar currentTime = Calendar.getInstance(); Date currenteDate = currentTime.getTime(); Expression<Date> dateCapture = root.get(Counter_.dateCapture); Expression<Integer> samplingPeriod = root.get(Counter_.samplingPeriod); Expression<Integer> delayMinutes  = cb.prod(samplingPeriod,3); //minutes to be added ... I decided to write a function on the database and retrieve it with the data function . This will not be a portable ...

 
manual

[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ObjectDB Explorer is a visual tool for managing ObjectDB databases. You can use the Explorer to browse databases, execute JDOQL queries, create new databases and edit the content of existing databases. This chapter contains the following s ...

 
forum_thread

JPA - ExceptionInInitializerError when creating EntityManager

EntityFactoryManager(emf) is successfully received but error at emf.createEntityManager Please see my code of fragment from my project. public class Main {        final private static Properties EMAIL_PROPS;      final private static String EMAIL_FROM;            static {  EntityManagerFactory emf = javax.persistence.Persistence.createEntityManagerFactory("tmpCLMSPU");  #1 2014-12-09 04:14 EntityFactoryManager(emf) is successfully received but error at emf.createEntityManager Please see my code of ...

 
forum_thread

How best to unbind all names?

My JDO application does inserts with binds, and then subsequently does bulk deletes using this code: #1 2012-06-27 11:42 My JDO application does inserts with binds, and then subsequently does bulk deletes using this code: pm. ...

 
forum_thread

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities with many lazy collections and i don't want to load them all. In JPA / Hibernate world it exist some tests demonstrating how to choose the best strategy. For example : http://zeroturnaround.com/rebellabs/how-to-use-jpa-correctly-to-avoid-complaints-of-a-slow-application/ In this article,join fetch seems to be the right choice. What about ObjectDb ? The implementation is totally different. #1 2015-06-09 21:12 Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities wit ...

 
forum_thread

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: #1 2014-04-22 07:57 Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expec ...

 
forum_thread

A few questions on object database design

I've been trying to model a database that stores data in an MMORPG. With ObjectDB, a lot of things are easier to perform. Intuitively, I created an entity class called player and stored everything about the player as embeddable classes. However, my colleague questions about this structure, since we would be looking at persisting data from the server every minute or two per player. He has stability issues with the ObjectDB if we are accessing the same table all the time.... performance by eliminating the need to persist and retrieve small pieces of data separately. On the other hand, if the entity ...

 
tutorial

Step 5: Add a JSP Page

Explains how to add a JSP to an Eclipse Spring MVC JPA web application project. 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), selecting  New > Other... > Web > JSP F ...

 
forum_thread

GWT RPC is throwing serialization exception when I have object db date value

Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'objectdb.java.util.Date' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = Sat Jan 29 00:00:00 PST 2011    at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)   #1 2011-02-07 15:14 Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'objectdb.java.util.Date' was not included i ...