About value

issue

Eager load Map

I'm having an issue eager loading a nested map. I've attached @ManyToMany(fetch=FetchType.EAGER) attributes to no avail. If the map is viewed in the debugger or force iterated in the code it loads ok. The attached code attempts to replicate the scenario. Its not an exact match but is the best I could come up with without replicating the whole system. The test creates an object, persists it to a db and re-loads it. The EntityManager is closed before accesing any fields. Finally the nested map is accessed and printed to screen. Bug Version: Priority: Normal Status: Fixed Replies: 7 Type:  Bug ...

 
forum_thread

Composite indexes

Hi, I read your manual about defining Indexes for JPA Entities (http://www.objectdb.com/java/jpa/entity/index), but I still have some problems understanding how and when should I use them.   Let's start with some example then. Assume we have an entity that represents an interior design image, called Inspiration : #1 2012-12-20 17:55 Hi, I read your manual about defining Indexes for JPA Entities (http://www.objectdb.com/java/jpa/entity/i ...

 
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     ... persistent fields) to store specific tenant data as key/value pairs. ObjectDB Support ObjectDB - Fast ...

 
issue

Indexes broken after schema update

I don't want to keep creating these issues but the Exception tells me to :), I started a thread to see if anyone else has encountered this at http://www.objectdb.com/database/forum/484 ... Key Code: -25 [2012-08-19 19:42:25 #85 store] Request Value: 1:'374571ee-21db-4e5b-9ef7-580fa9df04a7' [2012-08-19 19:42:25 ...

 
forum_thread

Performance and memory usage of queries

Hello, we can't understand why the performance of queries is not the best and the execution requires so much memory. In the implementation of our UnitTests we have used "DELETE FROM Object" to delete the database. That did not work because we often get an "out of memory" exception. What's all done in the execution of queries? Why is so much memory is required, although from the application point of view, no object is loaded. ... @ ElementCollection private float value = 0 ; } } ...

 
forum_thread

@ElementCollection query returning extra result per element in collection

Hi, ... condition is given - yet even though the binded value evaluates to a 'false' condition, and extra entity is ...

 
forum_thread

How to create a Unique constraint?

Hi, I'm trying to create a unique constraint. Here is a simple example: @Entity public class Account { @Id @GeneratedValue private long id; @Index(unique="true") private String name; } The code runs and my Account objects are persisted. But no exception is thrown if name is the same. What do I need to do to have a Unique constraint? Thanks, Carl   #1 2011-02-10 18:06 Hi, I'm trying to create a unique constraint. Here is a simple example: @ Entity publ ...

 
issue

Best practice for history tracking

We would like to add to records start and end timestamp fields. When end field is null, it indicates the last version of this item. Few questions: ... as a separate thread. These questions are of great value for other users so it is important that it would be easy for others to ...

 
release

2.0.0

... Fixed a synchronization bug in sequence value generation. Fixed some issues in query execution. ...

 
forum_thread

failure to enforce NOT NULL for java.lang.String

my test cases are indicating that @Basic(optional=false) and @Persistent(nullValue=NullValue.EXCEPTION) are not enforced in 2.3.7_08 or that i have failed to understand how to annotate. example: @Entity public class Request {   public Request() { }   @Id @GeneratedValue(strategy=GenerationType.IDENTITY)   private Long id; ... failed: Attempt to reuse an existing value (null) (error 613) at ...