About field

forum_thread

Possible issue for JPQL IS EMPTY expression

Possible issue for JPQL IS EMPTY comparison expression: SELECT e FROM MyEntity e WHERE e.collection-valued IS EMPTY throws javax.persistence.PersistenceException: Invalid operand type  for operator IS EMPTY (error 756) Thanks. ... a collection-valued relationship bidirectional and not a field: @ Entity class MyEntity { @ ...

 
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: ... values (numbers, strings, dates and other objects). Using field names and other expressions as arguments is not supported. For ...

 
forum_thread

No clue how to query with collection

Hi there! Actually, what I have is something like: @Embedable class Address { String getStreet(); int getStreetNo(); } @Entity class Contact { Collection<Address> getAddresses(); }   ... If it doesn't work, consider maintaining a field in Contact just for ordering. It might also improve ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application.... automatically and injects it into the em field (because it is annotated with the @PersistenceContext annotation). ...

 
forum_thread

Index on map key

Is there a way to create an Index with @Index on the key of a map? ... } } In this example, the field map is implemented as Collection<MyEntry> , i.e. a collection of ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in a NetBeans Spring MVC JPA web application project.... automatically and injects it into the  em field (because it is annotated with the  @PersistenceContext ...

 
forum_thread

String Encoding Issue

Hi all Encounter a character encoding issue when i try to retrieve a String column containing Chinese character. Retrieve a String column on odb file.  em = emf.createEntityManager(); Query query = em.createQuery("SELECT fu FROM FarmUnit fu"); But, when try to print the value out as: ... it is very likely that if you try to print the String field when you persist your entity object you will get the same result as ...

 
forum_thread

Multi-tenant setup

Hi, does anybody have experience with multi tenant setup of objectDB. For example using multiple schema or multiple database. How to handle connections between app (Jboss Wildfly) and pass query request to appropriate database, how to dynamically add new database or schema. There are lot of discussions on how to do it with hibernate Thanks     #1 2017-01-05 17:14 Hi, does anybody have experience with multi tenant setup of objectDB. For example using multiple schema o ...

 
tutorial

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in an Eclipse Spring MVC JPA web application project.... automatically and injects it into the  em field (because it is annotated with the  @PersistenceContext ...

 
forum_thread

Internal objectdb error when open a database or open an entity manager

we get following exception when we open a database or open an entity manager   #1 2016-02-19 08:37 we get following exception when we open a database or open an entity manager   Exception in th ...