About entity

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? ... I added a OneToOne Realtionship to one of my entity classes. To  give this field a value in my existing datasets i ...

 
forum_thread

Retrieval by Access bug?

Dear Sirs, I have an object A, that has a OneToMany FetchType.EAGER List of objects B, that has a field with a reference to an object C. I have this code: ClassA objectA = em.find(ClassA.class, 1); for (ClassB objectB : objectA.getListB()) {     ClassC objectC = objectB.getObjectC(); } em is an open Entity Manager with a running transaction. ... ( ) ; } em is an open Entity Manager with a running transaction. Almost all the time that I ...

 
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   #1 2014-04-04 16:54 Hi i am trying to configure ObjectDB using Spring JavaConfig but packageToScan is not working. I am getting ...

 
forum_thread

Problems using Maven Repo

I've worked around this by downloading "manually" but I don't seem to be able to resolve objectdb Maven dependency automatically - have the relevant repository entry etc. in my POM, Maven doesn't seem to be able to find anything. Wondering if there are some operational problems or if I should return to scratching my head. Many thanks ... I got follow Java Warning that tells me that Entity Class will be ignored. ../WEB-INF/lib/objectdb-2.6.2.jar' contains offending class: javax.persistence.Entity. It will be ignored.   If i download the jar File ...

 
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: #1 2013-01-02 18:39 Hi, I need to change field type in our model from long to String. After changing filed type in our model ...

 
forum_thread

Free ObjecDB license for Open Source project

I'm just starting to work on small Open Source project. Currently I'm selecting suitable persistence layer. ObjectDB looks like a very good fit, but I can't justify buying license for 500$. Also we can't restrict ourselves for 10 entities :).   So I wonder if it's possible to gain some kind of less restrictive ObjectDB license for Open Source project.  Thank you for your answer.   #1 2013-11-14 08:25 I'm just starting to work on small Open Source project. Currently I'm selecting suitable persistence laye ...

 
api-jpa

ManyToOne.targetEntity

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

 
forum_thread

Multi-Threading/Distributed-Database Questions...

Greetings ObjectDB team, All below questions assume a very large database (~1,000,000,000 objects): Q1: In what cases would ObjectDB utilize multi-threading ? how about in JOIN operations ? Q2: Is it true that two read-only JPQL queries accessing the same database file actually run simultaneously if placed into two independent threads ? no I/O synchronization bottlenecks ?... Activity of different entity managers in different threads is executed in parallel using ...

 
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 ... ; em. getMetamodel ( ) . entity ( DataStoreData. class ) ; em. close ...

 
forum_thread

How to define database structure and insert some initial objects from scratch

Hi from Spain! We're evaluating ObjectDB and we have some questions: - How can we create the initial database structure of our application? We know objectdb is all about objects and probably not need initial structure like tables, but how can we populate some "tables" with initial data from a script? In SQL world we have scripts like "insert into..." - Can we use main objectdb.jar library as jdbc driver for ETL software like Kettle? How about migrating data from another database system? ... code. That code, however, could be simple. Just build your entity objects and persist them. e.g. public class Main { ...