About value

forum_thread

JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums

Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN :enumFieldList)" And enum field is defined in MyEntity as: @Enumerated(EnumType.STRING) @Column(nullable = false) @Index private MyEnumType enumField; And MyEnumType is defined as: public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call: #1 2013-10-02 04:31 Hi, I have a case where I have a JPQL query like: "select o from MyEntity o WHERE (enumField IN : ...

 
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. ... codes is ok in MySQL, but not in ObjectDB. Before update a value, my threads will check the target existence, if yes then accumulate, else ...

 
issue

query.getResultList() throws ClassCastException

I modified the example code to include an index on the Point class like so:     @Index(members={"x","y"}) Then when I run the following query:     TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p where p.x <= :x and p.y >= :y",         Point.class); I get the exception at the end.  I do not get an exception if I: Bug Version: 2.3.0 Priority: Normal Status: Fixed Replies: 3 Type:  Bug ...

 
forum_thread

LAZY @ManyToOne field functions as EAGER

In the code example below (also attached) I would like to understand why I am able to print to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b.cLazy:{C}[2]"cLazy"
 b.cEager:{C}[3]"cEager" ... a hint. For example, ObjectDB always loads simple value fields eagerly (e.g.  String fields), even if lazy loading is ...

 
manual

JPA Lifecycle Events

Explains how to use JPA lifecycle events (client side triggers) with callback methods and listener classes.... The argument can have any type that matches the actual value (e.g. in the code above, Object can be replaced by a more specific ...

 
forum_thread

com.objectdb.o.InternalException: Unexpected internal exception

Hi, I am using objectdb.jar version 2.6.8 (installed via Maven). I am trying to authenticate a user. Initially, the database is empty. I have the following query: @javax.persistence.NamedQuery(   name = "getPersonByName",   query = "SELECT _person FROM metamodel.user.Person as _person WHERE _person.userName = :userName" ) I execute the query as follows: ... due to an unexpected SharedCacheMode null value in the  PersistenceUnitInfo that was used to initialize the ...

 
issue

Unexpected exception Error 990

Hello, following exception occurs when querying objectdb: Bug Version: 2.5.0 Priority: Normal Status: Closed Replies: 3 Type:  Bug ...

 
forum_thread

Server closes if large query runs out of memory

We are using ObjectDB in production, and have found what we thing to be a serious problem:  the objectdb server can run out of memory and stop if a query deals with too many objects. This isn't the behaviour we expected for a product that we want to use to deliver 24/7 high-volume data collection. ObjectDB surely has some idea of the sizes of objects that it persists and retrieves, and so should be able to fail safely if it finds too many objects being retrieved to fit into memory. There must be some alternative to crashing! ... require using many temporary lists, so unfortunately the value of this parameter is not straightforward and you will have to check its ...

 
forum_thread

Some details about db behavior

Suppose I have two entities... A B -> A B has a ManyToOne relationship with A. When my database is empty and I persist a valid B entity (that contains actual A reference) I observe some behaviour that I'm not sure I understand. ... A is the owner, B will be updated to reference a null value automatically on the next time it is loaded or refreshed from the ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in a NetBeans Spring MVC JPA web application project.... > <property name = "prefix" value = "/WEB-INF/" /> </bean >   </beans ...