About Date

forum_thread

Foreign key constraint issue

Hi, I'm trying to create two tables (Parent and Child) with a foreign key constraint from Child to Parent so that when the parent is deleted all children are removed as well. Unfortunately, in one specific case that foreign key constraint doesn't apply and I can't figure out what I'm missing. The definitions of the classes are as follows: ... keeping the child-parent bidirectional relationship up to date all the time, as according to JPA it is the application resposibility ...

 
manual

[ODB1] Chapter 6 - Persistent Objects

Shows how to store, retrieve, update and delete database objects. ... cache and it is unclear if its content in memory is up to date. If true is specified and the object in database is different, the ... section 4.4 ). Therefore, by default, String and Date fields, as well as collection fields (such as ArrayList ) are deleted ...

 
forum_thread

Replication failed

Dear support members, I am trying to set up a replication url in objectdb.conf and have the the following error in the log files: [ObjectDB 2.3.4] javax.persistence.PersistenceException Failed to connect to server 127.0.0.1:6136 (Connection refused) (error 522) at com.objectdb.jpa.EMF.createEntityManager(EMF.java:176) My objectdb.conf: ... are running, start with an empty database or with an up to date copy of the master database in the slave $replication directory, and ...

 
forum_thread

How to enhance the JPA/Spring/MVC to implement RESTfull for CURL client?

Here is my attempt to enhance the JPA/MVC/eclipse tutorial to implement a RESTful service. Why does this not work with this curl command? I get 404. Can someone help me correct this? Do I need to change my web.xml servlet mapping in web.xml? I've been experimenting with and nothing seems to work. Thanks Siegfried Here is my web.xml fragment: ... text/html;charset=utf-8 Content-Length: 1067 Date: Sat, 12 Oct 2013 17:00:24 GMT <html>   ...

 
manual

General Settings and Logging

Describes general configuration and logging of the ObjectDB Java object database for JPA and JDO. the ObjectDB General configuration section.... (where <yyyymmdd> represents the date). A new log file is also generated when the log file exceeds the maximum ...

 
forum_thread

Using Scala collections with ObjectDB

Hi, I cannot see that it is possible to make scala collection classes persistable within ObjectDB. Am I missing something or must  ObjectDB Software Ltd do a specific incorporation of the scala.collection._  api for it to work ? (http://www.scala-lang.org/docu/files/collections-api/collections.html)   /Peter   ... Given that the last date this issue was discussed was in 2011 (and the links are even older), is ...

 
forum_thread

Explorer query functionality

Is there a way in the Explorer to associate JPQL queries with query result windows?  I would really like to be able to open multiple query / result tabbed panes and be able to save out my queries, similar to what you can do in Benthic Golden or Toad in the SQL world. Alternatively are you aware of any other JPA + JPQL workbench tools, commercial or otherwise that would support this? ... could take some time to be ready and there is no target date yet. ObjectDB Support ObjectDB - Fast Object ...

 
forum_thread

Improvement in replication

Hi, I was thinking about some improvement in replication mechanism. Our application do only few writes (mostly reads), but those writes are important for us - objects rating, profile modifications. So in current implementation when master node dies, there is only a chance to read data from slave and all writes fails. ... they may be based on a state, which is not the most up to date. At least for some applications this is unacceptable. Introducing ...

 
forum_thread

Finding an object by its datetime

SearchBookingByTimeStamp() { Calendar btime = Calendar.getInstance(); btime.set(2012, 10, 11, 7, 30, 00); //This time is already inserted, trying to find it /* My Query */ TypedQuery<Booking> query = em.createQuery( "SELECT b FROM Booking b WHERE b.btime = :btime", Booking.class) .setParameter("btime", btime, TemporalType.TIMESTAMP); } @Entity public class Booking { @Temporal(TemporalType.TIMESTAMP) Calendar btime; }   ... but you may have to define the field as Timestamp or Date rather than as Calendar (i.e. the persistent field and the parameter ...

 
forum_thread

Sorting problem

Hi, I was rewriting our DAO to support pagging in large dataset and I think I have found a problem with sorting. I send you a test case - sorry for using the same project as previous, but it was faster to write this test case. As usual, you can load data with DataLoader and then check problem with QueryData. There is a simple query with "order by" sentence: #1 2011-02-13 00:04 Hi, I was rewriting our DAO to support pagging in large dataset and I think I have found a problem with s ...