About package

forum_thread

Enhancer problem

During development, I have used the enhancer API in a static block in the code that creates the EntityManagerFactory, ie. ... ) ; // .. more lines for each package   // connect to ObjectDB database emf = Persistence . ...

 
forum_thread

IN operator syntax

Hi, what is the correct syntax for IN operator when list of literals ia used instead of parameter, e.g. SELECT FROM Info i WHERE i.status IN (1,4) ? (Suppose status is int.) I always get this exception: SELECT FROM Info i WHERE i.status IN (1 ==> , <== 4) javax.persistence.PersistenceException Unexpected query token ',' (closing ')' is missing) (error 752)   Query with only one item in list works fine: ... Marta     package test ;   import java. util . *; import javax. ...

 
tutorial

Step 6: Set the Spring XML

Explains how to set XML in an Eclipse Spring MVC JPA web application project.... that file: Right click the WEB-INF node in the [Package Explorer] window, select  New > Other... > XML > XML File ... definitions --> <context:component-scan base-package = "guest" />   <!-- Use @Controller annotations for ...

 
forum_thread

OEM Enhancer causing Jenkins job to freeze

Hi all, We are using ODB enhancer in one of our jobs on jenkins, built via ant. Recently we started to encounter situation, where this job's execution gets stuck for ever on Jenkins. This is causing us a lot of problems with our CI. ... > <arg line = "-s ${dist.dir}/our/entities/package/" / > < / java> Is it possible to enable some ...

 
forum_thread

Finance data from SQL Server into ObjectDB daily

Hello -   I think ObjectDB might be just the solution for our current project but I would like some feedback from the community to see if I'm thinking about it right.   We have a finance data mart that is appended to daily via an SSIS package. I would like to pull the data from SQL, add it to a bean and store it in the ObjectDB. This would all happen in an automated fashion. Does this make sense? Is there a way to map the structure of the table directly into ObjectDB from SQL Server?   ... a finance data mart that is appended to daily via an SSIS package. I would like to pull the data from SQL, add it to a bean and store it ...

 
forum_thread

Weird behaviour with enhanced classes and embedded entities

Hi, I've found some weird behaviour in my project (www.tinymediamanager.org): Sometimes some entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing. Here is a small sscce which reproduces the issue: ... Here is a small sscce which reproduces the issue: package objectdbsscce ;   import java. util . ArrayList ; ...

 
forum_thread

"No Persistence provider for EntityManager" in OSGI bundle.

Good Day. I seem to have gotten a bit stuck while developing an OSGI bundle with ObjectDB. Essentially it builds an OSGI bundle with an embedded instance of ObjectDB and then tries to deploy the bundle inside an application running an embedded OSGI server (Apache Felix). The STARTING phase seems to fail due to the below error. #1 2011-11-10 14:31 Good Day. I seem to have gotten a bit stuck while developing an OSGI bundle with ObjectDB. Essent ...

 
forum_thread

Automatic schema evolution causes ArrayOutOfBoundsException

Hi, I did 2 modification to our schema. Our schema looks like this: class Entity     - List<String> permissions class ServiceProvider extends Entity     - String name class Airline extends Entity     - String name     - String iata #1 2016-09-23 08:14 Hi, I did 2 modification to our schema. Our schema looked like this: class Entity ...

 
forum_thread

Is it possible to remove parent/child entities without refresh?

We have a big object tree in our project. If I use the entityManage.remove method a entityManager.refresh is necessary in order to have an updated object tree in memory. But entityManager.refresh is too slow for our project. Do you know a possibilty to remove parent/child entities without entityManager.refresh after the entityManager.remove operation? I have searched for a solution with the following unit test (See testRemoveVariant2()). But my approach works correctly. Do you have an idea? ... transaction: (error 613)). Do you have an idea? package example ;   import java. io . File ; import ...

 
forum_thread

Cannot sort descending, when ordering by caluculated float in a method

Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem. public class InvoiceItem{ ..     private float price;     private float amount; .. }   public class Invoice{ ... you please change it to demonstrate the issue? package com. objectdb . forum ;   import java. util . *; ...