Home » Search

About Object Database

191-200 of 200Refresh
Forum
4

Drop the entire database, Change the schema

I am trying to port and example app to ObjectDb. As part of the tests I drop the database ... to do this with ObjectDb, or is the only way to delete the database file everytime? Thanks You can delete the database ... have two PUs configured which are the same apart from this property, I use one to 'drop' the database
Forum
4

UserException - Object User#2 belongs to another EntityManager

CDI. Problem on method execution, which runs a NamedQuery: com.objectdb.o.UserException - Object 'com ... is thrown only when mixing entity objects of different entity managers (which is forbidden, since every EntityManager manages its own space of managed objects, and a managed object
Forum
4

collection of embedded objects

1. In general, are there any restrictions of the use of @Embedded objects in collections, compared to @Entity? 2. If you have a large nested collection of @Embedded objects, and you remove the parent ... of @Embedded objects more expensive (time) than searching through collections of @Entity? Thanks
Forum
4

Object comparation never matches

Hi! I'm trying to compare 2 identical objects in SELECT with no success: @Embeddable public ... ;   Which is a part of Customer object: @MappedSuperclass @NamedQueries({     @NamedQuery(         name ... "     ) }) public abstract class Customer implements Serializable {     Object principal; The entity
Forum
4

Database absolute filepath

Is there a line of code that can be used to print out my databases absolute path? I have set it as follows: EntityManagerFactory emf = Persistence.createEntityManagerFactory("$objectdb/database/people.odb"); However, the data being shown in \lib\objectdb\database\people.odb is different
Forum
4

Master database switching to read-only mode, possibly caused by slave failure

We had a database failure causing a production outage. Both master and slave databases have failed ... database failed first and possibly caused the master to switch to read-only mode. The sequence ... - MASTER instance stopped responding to write requests. All requests sent to the database during 3
Forum
4

Convert embedded database to server

Hello, What is the right way to convert an embedded database to a server one ? As a result ... data directory, start the server, and access the database from your application using a client ... database ( with remote connection enabled ) and a real server instance database ? Regards
Issue
4

Error in production. Failed to commit transaction: Unexpected database state: BTree -152 is not found

.0_25 (on Linux 3.11.0-12-generic). Please report this error on http://www.objectdb.com/database ... .Read .doGet (115 ): Failed to commit transaction: Unexpected database state: BTree -152 is not found ... database state: BTree -152 is not found (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:302
Forum
4

InternalError on query of empty database

Hi, I have reasons for sometimes trying to query the database before anything has been created. The problem is the database throws a InternalException when that happens. Is it possible to throw ... the database about its current schema? Thanks P. Sure. Usually a more appropriate exception is thrown in
Forum
4

Criteria Query results in a NoResultException instead of returning object

.authenticate(IdentityImpl.java:284) ... 45 more   Even though there exists an object that matches the query (check attached screen shot). Should the query be returning an object or am I doing ... returns an object: String queryStr = "select i from " + identityClass.getSimpleName