About parameters

forum_thread

Should derived fields of an EmbeddedId be manually maintained by app code?

If I have an Entity which has a primary key which is derived and I am implementing it using @EmbeddedId, am I responsible for maintaining the derived fields of the @EmbeddedId? I could not find anything in the JPA 2.0 spec http://download.oracle.com/auth/otn-pub/jcp/persistence-2.0-fr-oth-JSpec/persistence-2_0-final-spec.pdf?e=1317047713&h=54831c176e81a244a4c309e13eba0b27 which tells me what to expect. #1 2011-09-26 15:26 If I have an Entity which has a primary key which is derived and I am implementing it using @EmbeddedId, am I res ...

 
forum_thread

zip file or JAR manifest missing

I found the message: Error opening zip file or JAR manifest missing: /E:/projects/ObjectDB/bin/objectdb.jar Some of projects can read the DB, but others can not read or write the DB. #1 2011-06-28 15:38 I found the message: Error opening zip file or JAR manifest missing : / E :/ projects / Obje ...

 
forum_thread

Modifier operations

Hi, Today I was reading about different NoSQL databases. One of those database - MongoDB - has a very nice feature, especially for web applications - modifier operations. The whole trick for those operations is to change some value in object without pulling this object from database. So for example we have class: public class WebVisit { public String url; // key public int visitsCount; } As for now I have to pull this class from database: #1 2011-09-12 18:27 Hi, Today I was reading about different NoSQL databases. One of those database - MongoDB - has a very nic ...

 
forum_thread

Attempt to refresh a non managed entity object (error 635)

Just ran into a problem that I've not seen in 10 years of running ObjectDb: java.lang.IllegalArgumentException Attempt to refresh a non managed entity object (error 635) Nothing changed in my code, but I'm wondering if there is a problem with the config file, and /or my recent experiments with Intellij's JPA database explorer, which required me to use a JPA persistence.xml configuration file. (I was able to use to run objectdb queries from inside Intellij). ... it's time to really dig into the configuration parameters, am noticing a few weird things in my tests, for example, managed, ...

 
issue

java.lang.ClassCastException: com.objectdb.o.RFV cannot be cast to com.objectdb.o.RSV

The following query: SELECT count(m) FROM Message m WHERE m.attachments.original=:template is generating this exception: Bug Version: 2.5.2 Priority: High Status: Fixed Replies: 2 Type:  Bug ...

 
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; }   #1 2012-11-12 06:11 SearchBookingByTimeStamp ( ) {   Calendar btime = Calendar. getInstance &# ...

 
forum_thread

Modifying something with Explorer -> app JPQL with Enum doesn't work anymore

Hi! Scenario: Copy attached DB into localhost ObjectDB server (I'm running 2.5.1_03). Open attached project JavaEE Maven with NetBeans (7.4 beta in my case). Start ObjectDB on localhost as server. Run project on Apache Tomee 1.5.2 standard. Take a look at NetBeans' output to see how many entities are found with field type GOOD. There are 2 ways generate the bug: #1 2013-09-03 10:13 Hi! Scenario: Copy attached DB into localhost ObjectDB server (I'm running 2.5.1_03). ...

 
forum_thread

Failed to enhance dynamic type

Hi, We are trying to enhance a class with OSGI Weaver using the JEnhancer.THIS instance as a class transformer. Works very well except for some entities, i.e. we do have an entity which has: @Override public String getQubletHeadingMain(LanguageContext context) This is a simple implementation of our custom interface and should of course, NOT be enhanced. Yet, we get an error due enhancing: Failed to generate dynamic type com.quasado.galaxy.foundation.api.language.LanguageContext #1 2011-11-16 08:41 Hi, We are trying to enhance a class with OSGI Weaver using the JEnhancer.THIS instance as a class transf ...

 
forum_thread

connection pooling

how do you handle connection pooling?  I don't understand how to open and close connection, or reconnect. I've referenced the manual here, but where does this go:   The <connection> element   <connection port="6136" max="100" /> The <connection> element specifies how clients can connect to the server: #1 2014-08-31 23:39 how do you handle connection pooling?  I don't understand how to open and close connection, or reconnect ...

 
forum_thread

JPQL IN Operator

How can I use the standard JPQL IN operator with ObjectDB? This JPQL query works fine with EclipseLink / postgres but throws an exception in objectDB: select distinct dv.creationtime from DataValue dv where dv.capabilityId.capabilityId ==> in <== :capabilities and dv.creationtime >= :earliest and dv.creationtime <= :latest order by dv.creationtime ASC [ObjectDB 2.2.9] javax.persistence.PersistenceException Unexpected query token 'in' (error 752) #1 2011-09-08 14:54 How can I use the standard JPQL IN operator with ObjectDB? This JPQL query works fine with EclipseLink / ...