Home » Search

About class

131-140 of 200Refresh
Forum
11

"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   Rebuilding an index currently requires
Forum
11

Access objectdb.conf as class loader resource

Hi, is it possible configure ObjectDB so it searches the objectdb.conf file as a class loader resource? Regards, Vladimir If a configuration file is not found at the expected path, then it is loaded as a resource from: META-INF/objectdb.conf Default configuration is included in objectdb.jar as
Forum
11

Does ObjectDB support inheritance of @Embeddable classes?

Does ObjectDB support inheritance of one @Embeddable into another @Embeddable ? Yes. ObjectDB supports hierarchy of embeddable classes. webel
Forum
11

how to persist an object twice into two diff. collections of two diff. classes

DBConnection(); Competition tmpComp = db.getEm().find(Competition.class, actualCompetition
Forum
11

Is it possible get the All PrimKeys for a given entity class in the DB?

Hi, I would like to retrieve all the primKeys (user defined) by doing something like: TypedQuery query = em.createQuery("SELECT mif.primkey FROM MyClass mif", MyClassPrimKey.class); The only alternative I can think of - would be to store the primkey on the object
Forum
11

JDO PersistenceCapable Interface for Enhanced Classes

Hallo,   in old JDO 1.0 project we use the PersistenceCapable interface like this     Model model = new Model();     Model datas List models = new ArrayList();     models.add((PersistenceCapable) model); the interface was enhanced to the class. in the new version we get this java.lang
Forum
11

Query debugging configuration from class

Is there a way to show what queries are actually being executed from within a Java class? I'm getting the exception: Exception in thread "main" [ObjectDB 2.5.4_05] javax.persistence.NonUniqueResultException However, I'm unable to debug it because I don't know what the query's actually searching
Forum
11

Removing entity class

Regards Milan Unfortunately removing a class is currently unsupported. You will have to create a new
Manual
11

Deleting JPA Entity Objects

transaction, it can be deleted using the remove method: Employee employee = em.find(Employee.class, 1 ... if the argument is not a an instance of an entity class or if it is a detached entity ... can be referenced by a collection field): @Entity class Employee { : @OneToOne
Manual
11

Detached Entity Objects

): @Entity class Employee { : @OneToOne(cascade=CascadeType.DETACH) private Address address; : } In the example above, the Employee entity class contains an address field that references an instance of Address, which is another entity class. Due to the CascadeType.DETACH