About entities

forum_thread

NOT NULL not working

I added a OneToOne Realtionship to one of my entity classes. To  give this field a value in my existing datasets i wrote an upgrade method. The cool thing is that SELECT u FROM Unit u WHERE u.lastPosition IS NOT NULL returns no datasets. Is this a bug or am i missing something? #1 2011-11-08 15:57 I added a OneToOne Realtionship to one of my entity classes. To  give this field a value in my existing data ...

 
forum_thread

OEM license, enhancer

We do have an OEM license. Ig I understand correctly, we do not have to create an activation code for each customer system when we are using enhancer.  As we want to ship a standard database with the system which was created before having the OEM license and before adding enhancer to our maven process, I want to know if the OEM license is in this case works correctly. #1 2016-03-08 07:52 We do have an OEM license. Ig I understand correctly, we do not have to create an activation code for each custom ...

 
forum_thread

Spring and packagesToScan

Hi i am trying to configure ObjectDB using Spring JavaConfig but packageToScan is not working. I am getting Type XXX is not found   ... I need packageToScan because there are many jar files with entities under "com.myentities." package and subpackage ...

 
forum_thread

Schema migration - long to String

Hi, I need to change field type in our model from long to String. After changing filed type in our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: ... our model and repairing database with doctor, most of our entities is gone. Doctor puts some errors on console: [51030] Page ...

 
tutorial

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in a NetBeans Java EE web application. Operations on the database will be performed by an instance of a session bean (EJB) class that we will define in this step: Open the [New Session Bean] dialog box by right clicking the guest package node (in the [Projects] window), sel ...

 
forum_thread

DB reading fails in debug mode in Eclipse

Hello, I got an unpleasant bug which turned into a serious issue. Using ObjectDB 2.6.9.b08 on Linux. Here is the structure (JDO metadata) of 3 classes which I am storing as values in a HashMap of another entity in the DB. #1 2017-11-30 15:07 Hello, I got an unpleasant bug which turned into a serious issue. Using ObjectDB 2.6.9.b08 on Linux. ...

 
api-jpa

ManyToOne.targetEntity

(Optional) The entity class that is the target of the association.(Annotation Element of javax.persistence.ManyToOne)

 
api-jpa

setFlushMode(flushMode)

Set the flush mode type to be used for the query execution.(Method of javax.persistence.TypedQuery)

 
forum_thread

Failed to create a new file 'target\objectdb\log\archive' (error 112)

Hi, we are using ObjectDB 2.4.6_10 (embedded mode). The pre-registration of a data type (see below) fails because ODB can't create a new file in a non-existing folder hierarchy. The user under which the JVM is executed in which the code below is run does have write permissions on the folder "target\objectdb". The folder "target\objectdb\log" does not exist yet. Do we have to create it beforehand? This issue is affecting our integration tests against ODB and is pretty major for us. Thanks #1 2013-07-02 12:06 Hi, we are using ObjectDB 2.4.6_10 (embedded mode). The pre-registration of a data type (see below) fails ...

 
forum_thread

Metamodel Attribute NOT EQUALS to same Attribute in a different EntityManager

Attribute from Metamodel initialized on @PostConstruct event IS NOT EQUALS of any Attribute from Metamodel of a different EntityManager. I am testing one application over Spring Web MVC and I can not post one Simple Test Case. The problem is it: If I have two moments of initialization of "javax.persistence.metamodel" from EntityManager and these two metamodels come from different EntityManagers and the one of these is on a @PostConstruct event, they return not equals Attributes using the same entity.   #1 2014-10-01 18:56 Attribute from Metamodel initialized on @PostConstruct event IS NOT EQUALS of the same Attribute from Metamodel o ...