About Doctor

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   ... the only way to activate the index is to use ObjectDB Doctor to rebuild the entire database. Future versions of ObjectDB ...

 
issue

Error on commit

I get the following on commit:  (v2.3.7_15) Let me know if you need more info. ... Please use the ObjectDB Doctor to check the database and post the report. ... at com.objectdb.o.DMR.B(DMR.java:163) at com.objectdb.Doctor.main(Doctor.java:22) [2012-04-20 13:29:50 #104 type.loader] ...

 
forum_thread

Error using query with MAX() function

I have a class that is persisting a Entity that holds remarks and a time. Then when I query for the latest remark I get a internal error when the remark is larger than 1966 chars. Here is a test class and entity that reproduces the problem on my system. ... entities yet. After the failure the database fails Doctor check ObjectDB Doctor [ version 2.2.3_03 ] Copyright ( c ) 2011, ...

 
forum_thread

@Unique added afterward is not taken into account

Hello, ... data requires rebuilding the database by using the Doctor in repair mode (a better support for adding a new index is expected to ...

 
forum_thread

"Rebuild Class Indexes" from the command line?

Hi, Is there a way to "Rebuild Class Indexes" from the command line? I have just added a new index and want to make sure the DBs with previously persisted entities have a BTree with all entities. http://www.objectdb.com/database/jdo/manual/chapter9 Thanks   ... an index currently requires running the ObjectDB Doctor , which is run from the command line. ObjectDB 1.x included an ...

 
release

2.3.6

... ( $objectdb ) in NetBeans RCP . Fixed a Doctor and Replication regression (Type session exceeds timeout). ... . Added option for running the Doctor without activating disabled indexes. Fixed a ...

 
issue

ClassCastException thrown when running count query

Hello! Attached you find a full stacktrace. The query was: ... and delete a lot of data. I also tried to run your DB Doctor. It doesn't help. Please contact me if you need more ... this one seems to be related to broken references. The Doctor detects many broken references in this database. Notice that currently ...

 
release

2.3.7

... ( $objectdb ) in NetBeans RCP . Fixed a Doctor and Replication regression (Type session exceeds timeout). ... . Added option for running the Doctor without activating disabled indexes. Fixed a ...

 
release

2.3.0

... . Added option for running the Doctor without activating disabled indexes. Fixed a Doctor bug in fixing old (< 2.0) database files. ...

 
forum_thread

can removing an entity throw an exception if the entity is in use?

Suppose you have an entity @Entity class A { ... } and other entities with references to A.   e.g. @Entity class B { A a; // explicit reference to A List<A> list; // list of A's Set<A> set; // set of A's Set untyped; // general collection that may include A's } Objectdb allows me to remove an instance of A, even if a managed B has some reference to that A. When I then find the B instance and try to reference the A, I get an EntityNotFoundException. ... cause dangling (broken) references. The ObjectDB Doctor  reports broken references so it could be very helpful during ...