About Date

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

 
forum_thread

GlassFish 3.1.2.2/JBoss 7.1.1

Good day, We have few troubles with GlassFish on @remote. When we wants to get entity from remote interface, but in the result we have null in all entity fields. As I see there is a GlassFish problem (http://www.java.net/forum/topic/glassfish/glassfish/cant-return-entity-ejbs-remote-ejb). May be you have some ideas?  When we just try JBoss 7.1.1 nothing works at all. When I get a real world objectdb deployment example?    Thanks.  ... supported soon but we cannot commit to a specific target date. ObjectDB Support ObjectDB - Fast Object ...

 
forum_thread

java.sql.Timestamp.getTime() not working

Hi, I need to work with Timestamp diff in two entity fields, but this queries SELECT count(p) FROM Player p WHERE p.loginAt.getTime()-p.registeredAt.getTime()>:value SELECT p.loginAt.getTime() FROM Player p fails with object is not an instance of declaring class but SELECT p.loginAt.getYear() FROM Player p works. How that possible?   ... methods from java.sql  types, including Time, Date and Timestamp are not supported directly. The workaround is to use ... ) FROM Player p or to use java.util.Date instead of  Timestamp if applicable. ...

 
forum_thread

Performance in large transactions

Hello, we have a performance problem when we use a large transaction. Let's do exactly the same in several transactions the ObjectDB works much faster. In our use case, we create many new entities and between the creations we call a select query. The execution of the query becomes slower at each iteration. (In the query, we search for an item of type Entity2. However, there is only one entity.)   Pseudocode for the fast and the slow solution FAST: ... each time again and again, in order to check their up to date validity and integrate them with other concurrent updates. ...

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

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

 
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

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

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