About object

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; }   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

can we use objected with ehcahce?

Hello , I need advanced caching system. Terracotta ehcache provides us , advanced distributed cache mechanism.   Can we use objectdb with ehcache ?   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Removing objects where ManyToMany relationships exist

Consider you have an entity Entity with the following unidirectional relationship: @ManyToMany private Set<OtherEntity> setOfOtherEntities; public Set<OtherEntity> getOtherEntities() {     if (setOfOtherEntities == null) {       setOfOtherEntities = new TreeSet<OtherEntity>();     }     return setOfOtherEntities;   } ... to prevent broken references. When an OtherEntity object is deleted the application must also remove any references to it, ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

ObjectDB JDBC to Object compiler

Hello , some products developed by JDBC , So we cannot use ObjectDB. My idea is , you can make JDBC To ObjectDB wizard compiler or something like this. You can eliminate JDBC Requests from Java Code. It can be Intellij or Eclipse IDE plugin for ObjectDB.   It dedects strings and combinations like "insert into ObjectT values('hasan','test')" to ObjectT obj = new ObjectT("hasan","test"); em.persist(obj);   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Query to find object from element of a contained collection

I have an OrderData class, containing an ItemData collection, i would like to find OrderData elements by ItemData.items.itemId. I cant get a proper query with MEMBER OF or IN. Does anyone have an idea on how i could formulate that as Typed or CriteriaBuilder query? Thanks.   ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Object DB In memory : without Filestore

Hello, I raised this question earlier as well, we want to explore if I can run the ObjectDB completely in Memory ? (without any writes to Disk, it's okay to loose the data if the node is down ). I think that will give the best performance. The reason we are exploring is restoring state is possible for us through replaying the logs, however we want easier data structures which is really good with ObjectDB along with Concurrency controls and transaction mgmt. Let us know if it is possible to run the Object DB completely in memory without disk storage. ... transaction mgmt. Let us know if it is possible to run the Object DB completely in memory without disk storage. thanks, ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...

 
forum_thread

Object belongs to another EntityManager - ERROR

Hi, From time to time we are getting following error in our project when trying to insert/update a record in database ... ) Failed to commit transaction: Object 'pbdmodel.impl.OrgJedinicaImpl #8' belongs to another EntityManager ... com.objectdb.o.UserException: Object 'pbdmodel.impl.OrgJedinicaImpl #8' belongs to another EntityManager ... ) Caused by: com.objectdb.o.UserException: Object 'pbdmodel.impl.OrgJedinicaImpl #8' belongs to another EntityManager ...

 
issue

JPA Composite Key make Object Db throws "Unexpected exception (Error 990)"

Hello Object Db community :) I am using this wonderful library and I caught a strange exception while testing the "composite key" feature in JPA. Let's see what I am doing : @Entity public class Book {     @EmbeddedId BookId id; } @Embeddable Class BookId {     Integer bookIdCountry;     ECountry country; } My BookId contains 2 attributes: One Integer and one enum. ... 08:08 Hello Object Db community :) I am using this wonderful library and I caught a ... one enum. These attributes are compliant with the object Db Documentation: http://www.objectdb.com/java/jpa/entity/id ...

 
forum_thread

Criteria Query results in a NoResultException instead of returning object

When I run the following code    ... 45 more   Even though there exists an object that matches the query (check attached screen shot). Should the query be returning an object or am I doing something wrong?   Thanks. ...

 
forum_thread

enhanced object .. NOT enhanced

Hi  I think I have found a bug :  - I have enhanced a class but when I tried to persitst it I got an error that this class has not been ehanced (what is important, this class has _odbTracker field added) So, instead of DB write a standard serialization mechanizm is triggered. Finnally we get an OutOfMemory expeption. b ... ObjectDB Support ObjectDB - Fast Object Database for Java (JPA/JDO) ...