About value

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 ...

 
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

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 ...

 
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 ...

 
forum_thread

@AttributeOverrides , and postgresql + own TYPE

Hello,  first of all i want to thank for this is site. I'm begginer in Java and also in JPA and this site is very helpful for me. Now What is my problem. Unfortunately  i have to work with postgresql + JPA + eclipselink, because is my school project. Database is final and i can't do any changes even if i wanted to. In structure of DB  is this. -- -- Name: address; Type: TYPE; Schema: artio; Owner: facman --   ... several questions. 1.Can i get access to direct value of address  ? Type "address" is consist with variables ...