ObjectDB Database Search
51-100 of 179 resultsExtra uninitialised entities spawned on merge(); Element root = new Element(null, " root "); em.persist( root ); em.getTransaction().commit(); Long id = root .getId();   | |
multiple LEFT JOINs do not work as expected stores a reference to it parent organisation. I'm trying to find all organisations 2 levels under a root organisation, e.g. where organisation.parentOrg is the root or organisation.parentOrg.parentOrg is the root . The query also contains a number of other predicates and it is built dynamically using | |
Criteria Query results in a NoResultException instead of returning object.getCriteriaBuilder(); CriteriaQuery criteria = builder.createQuery(identityClass); Root root = criteria.from(identityClass); criteria.select( root ); List predicates = new ArrayList (); predicates.add(builder.equal( root .get(identityNameProp.getName()), obj | |
How to disable use of graphic windows by objectDB. [ root @GhostRider bin]# ./objectdb.sh start /usr/bin/sudo -b -u javauser /usr/java/jdk/bin ... .Server -console start [ root @GhostRider bin]# ObjectDB Server started on port 6136. #The server is running [ root @GhostRider bin]# ps -ax | grep javauser 4238 pts/1 Sl  | |
Help with JPA2 Criteria and conditional operator grouping c = builder.createQuery(Company.class); Root root = c.from(Company.class); ParameterExpression nameParam = builder.parameter(String.class); Path namePath = root .get("companyId"); Path conditionOnePath = root .get("conditionOne"); Path conditionTwoPath = root | |
java.sql.Date equals comparison not working with CriteriaAPI = ...; Root root = ...; java.sql.Date myDate = ...; Predicate predicate = builder.equal( root ... ; CriteriaQuery q = cb.createQuery(MyDateEntity.class); Root root = q.from(MyDateEntity.class); q.select( root );   | |
CriteriaQuery .where() for multiple conditions.where(criteriaBuilder.equal( root .get("name"), name)); criteriaQuery.where(criteriaBuilder.equal( root .get("surname ... (); CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(Person.class); Root root = criteriaQuery.from(Person.class); criteriaQuery.select( root ); Predicate criteria = criteriaBuilder | |
Problem witch CriteriaBuilder isMember(..) cb = ... Root root = ... Testclass searchobject = new Testclass(1,2); Predicate predicate = cb.isMember(searchobject, root . get("testlist1")); doesn't work, while String searchobject = "testtext"; Predicate predicate = cb.isMember(searchobject, root . get("testlist2")); works as expected. the equal | |
CriteriaQuery using isNotNull with other conditions results in InternalException(); CriteriaQuery criteria = builder.createQuery(relationshipClass); Root root = criteria.from(relationshipClass); criteria.select( root ); List predicates = new ArrayList (); predicates.add(builder.equal( root .get("to"), identityObject)); predicates.add(builder.equal( root .get("relationshipType | |
Help with 'not like/lower' query): ParameterExpression stringProp = criteriaBuilder.parameter(String.class); Path path = root .get(property ... .criteria.Path; import javax.persistence.criteria. Root ; public final class ObjectDBTest {   ... ; ParameterExpression stringProp = builder.parameter(String.class); Root root = c.from(MyEntity.class);   | |
ObjectDB CRUD Examples(); CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(Foo.class); Root root = criteriaQuery.from(Foo.class); List allFoo = (List ) criteriaQuery.select( root ); em.getTransaction().commit(); em.close ... = em.getCriteriaBuilder(); CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(Foo.class); Root | |
OutOfMemoryError on search after update on DB created with DB Doctor: [ root @localhost totalrecall]# ls -al db total 1085048 drwxr-xr-x 3 totalrecall totalrecall 4096 Mar ... totalrecall 1339 Feb 19 16:35 objectdb.conf -rw-r--r-- 1 root root 1073741824 Mar 11 12:40 SystemDB.odb -rw-r--r-- 1 root root 214695936 Mar 9 15:16 SystemDB.odb.rpmnew [ root @localhost totalrecall]# 4 | |
"Unexpected query expression" using CriteriaQuery FetchParent Interface Using the fetch over Root attribute, the exception is: com.objectdb.o._PersistenceException: Unexpected query expression end (non keyword identifier is expected)] with root cause com.objectdb.o ... ; CriteriaQuery criteriaQuery = cb.createQuery(Person.class); Root root = criteriaQuery.from(Person | |
Soft Reference Object Cache Recommendation? Can you see a path of strong references from a root that holds that byte[] from being garbage ... get freed. Presumably, all items listed therefore have a strong reference path from some root ... dump after commit, clicking right and selecting "Show nearest GC root " results with a VisualVM | |
Database is erased after deploying a new web application version to my root directory (and opened all permissions for it) but now there's a problem with accessing ... the full exception error message and stack trace. Failed to open file '/ root /evee-database.odb' at com.webapp ... the "fuser" command as follows: [ root @vmedu158 ~]# ps PID TTY  | |
IN expression in a Criteria Query is with Criteria Language. This code: In inExpression = cb.in( root .get(Computer_.employeeEntity ... ; Root root = q.from(MyEntity.class); Path value = root .get("str"); Predicate predicate | |
Date field Index is corrupted due to time change that running DB Doctor on it shows the following issues: root @localhost totalrecall]# ./dbDoctor.sh db ... running it on the DB file. We get: [ root @localhost totalrecall]# ./dbDoctor.sh db/SystemDB.odb.2.6.5 db ... .6.5 and AEDT time zone: [ root @trvr-200]# uname -a Linux localhost 2.6.32-279.9.1.el6.x86_64 #1 SMP | |
How to add minutes to a Date with JPA2 = currentTime.getTime(); Expression dateCapture = root .get(Counter_.dateCapture); Expression samplingPeriod = root .get(Counter_.samplingPeriod); Expression delayMinutes = cb.prod(samplingPeriod,3 ... dateCapture = counterJoinValue.get(Value_.dateCapture); Expression samplingPeriod = root .get(Counter | |
Spring + Maven + persitence.xml.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root ... ) root cause com.objectdb.o.InternalException: Unexpected Server Error com.objectdb.o.CLS.T(CLS.java ... ) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) root cause java.lang.NoClassDefFoundError | |
Query in JPA2 with LEFT JOIN on INNER JOIN actionDescriptionCriteriaQuery = cb.createQuery(String.class); Root root = cq.from(Action.class); Selection ... = actionDescriptionCriteriaQuery.select( root .get(Action_.description)).getSelection(); selections[0]=actionDescriptionSelection; Predicate masterPredicate = cb.conjunction(); Predicate predicateOnPath = cb.equal( root | |
How to convert a boolean to an int in the query?(Integer.class); Root c = q.from(City.class);   ... = em.getCriteriaBuilder(); CriteriaQuery q = cb.createQuery(Integer.class); Root c = q.from(Person ... = em.getCriteriaBuilder(); CriteriaQuery q = cb.createQuery(Integer.class); Root c = q.from(Person | |
JPA CriteriaQuery -- Iterate Expression | |
Connecting to a remote objectdb server an absolute path (or relative, starting with $objectdb ) for the database root directory. See this manual ... the db files on the root folder of server? I do not see any files in the db folder or directory ... run my app, it created db folder on application root folder and create *.tmp files. Which I believe | |
Object as parameter results in exception = getEntityManager().getCriteriaBuilder(); CriteriaQuery c = qb.createQuery(managedClass); Root ... ); Root p = c.from(managedClass); c.select(p); c.where( qb ... = getEntityManager().getCriteriaBuilder(); CriteriaQuery c = qb.createQuery(managedClass); Root | |
InternalError on multiple AND and JOIN Query.springframework level set to OFF 09:30:08,930 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - ROOT ... - Attaching appender named [STDOUT] to Logger[ ROOT ] 09:30:08,930 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [SIZE_BASED_ROLLING_APPENDER] to Logger[ ROOT ] Tests run | |
CriteriaBuilder.sqrt(x) - JPA Method JPA Method in javax.persistence.criteria.CriteriaBuilder Expression sqrt ( Expression x ) Create an expression that returns the square root of its argument. Parameters: x - expression Return: square root Since: JPA 2.0 | |
javax.persistence.criteria.From. For example: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); q.select(p ... .class); Root p = q.from(Person.class); Path nicknames = p.get("nicknames"); q.select(p) .where(cb | |
javax.persistence.criteria.Path: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class); q.select(p) .where(cb ... ); Root p = q.from(Person.class); Path nicknames = p.get("nicknames"); q.select(p) .where(cb.isMember | |
Path | |
javax.persistence.DiscriminatorColumn JPA Annotation DiscriminatorColumn Target: TYPE Implemented Interfaces: Annotation Specifies the discriminator column for the SINGLE_TABLE and JOINED Inheritance mapping strategies. The strategy and the discriminator column are only specified in the root of an entity class hierarchy or | |
javax.persistence.DiscriminatorValue the root of an entity class hierarchy or subhierarchy in which a different inheritance strategy | |
javax.persistence.Inheritance JPA Annotation Inheritance Target: TYPE Implemented Interfaces: Annotation Specifies the inheritance strategy to be used for an entity class hierarchy. It is specified on the entity class that is the root of the entity class hierarchy. If the Inheritance annotation is not specified or | |
javax.persistence.NamedEntityGraph of the entity graph. Defaults to the entity name of the root entity. Since: JPA 2.1 NamedSubgraph | |
javax.persistence.NamedEntityGraph.name JPA Annotation Attribute in javax.persistence.NamedEntityGraph String name default "" (Optional) The name of the entity graph. Defaults to the entity name of the root entity. Since: JPA 2.1 | |
CriteriaQuery.select(selection) - JPA Method type is specified. For example: CriteriaQuery q = cb.createQuery(String.class); Root order = q.from | |
ClassCastException in Tuple.get.createTupleQuery(); Root rootDemandAnswer = cq.from(DemandAnswer.class); Join joinDemand = rootDemandAnswer ... .get(1); So it seems that Tuple.get chokes on Join, Root and probably other TupleElements ... .get( root ) and Tuple.get(join) with Tuple.get(alias, SelectedEntityType.class) but I'd really love | |
Strange Error with Criteria API and Sorting.Join; import javax.persistence.criteria. Root ; public class Test_OrderBy { public static void main ... .createQuery(TestEntity.class); Root root = query.from(TestEntity.class); final Join otherJoin = root .join("other"); query.orderBy(cb.asc(cb.upper((Expression ) (Expression ) otherJoin | |
Freeze during save; The loops consisted of references to the root of the tree. I have managed to code around the problem, by removing the references to the tree root so there were no long loops. Just an idea ... (); MyNode root = new MyNode(null); MyNode child = new MyNode( root ); MyNode grandchild = new MyNode(child | |
Logical "or" works not correcly when field is @Id and first position(Data.class); Root root = query.from(Data.class); query.select( root );   ... ; builder.equal( root .get("a"), "1"),   | |
Best practise loading big data and paths of strong references from roots to objects? support Support @Entity class MyStepBlockCollection ... ; Here is my debug scenario: I have an existing DB File that contains One single root MyStepBlockCollection ... all entities in the DB if the lists all hold references to the entities. The algorithm just holds the root | |
FetchPlan.getDetachmentRoots() - JDO Method JDO Method in javax.jdo.FetchPlan Collection getDetachmentRoots () Get the roots for DetachAllOnCommit. Return: Collection of detachment roots . Since: JDO 2.0 | |
FetchPlan.setDetachmentRootClasses(rootClasses) - JDO Method JDO Method in javax.jdo.FetchPlan FetchPlan setDetachmentRootClasses ( Class... rootClasses ) Set the root classes for DetachAllOnCommit. Parameters: rootClasses - The root classes. Since: JDO 2.0 | |
FetchPlan.getDetachmentRootClasses() - JDO Method JDO Method in javax.jdo.FetchPlan Class[] getDetachmentRootClasses () Get the root classes for DetachAllOnCommit. Return: The detachment root classes Since: JDO 2.0 | |
javax.jdo.JDOException JDO Exception JDOException java.lang.Object ∟ java.lang.Throwable ∟ java.lang.Exception ∟ java.lang.RuntimeException ∟ javax.jdo.JDOException This is the root of all JDO Exceptions. It contains an optional detail message, an optional nested Throwable array and an optional | |
PersistenceManager.makeTransient(pc,useFetchPlan) - JDO Method: pc - the root instance to make transient. useFetchPlan - whether to use the current fetch plan | |
PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method the javax.jdo.spi.Detachable interface. Parameters: pcs - the root instances to make transient | |
PersistenceManager.makeTransientAll(useFetchPlan,pcs) - JDO Method the javax.jdo.spi.Detachable interface. Parameters: pcs - the root instances to make transient | |
PersistenceManager.makeTransientAll(pcs,useFetchPlan) - JDO Method to implement the javax.jdo.spi.Detachable interface. Parameters: pcs - the root instances to make transient | |
javax.jdo.annotations.FetchPlan to instantiate, starting with the root object. Since: JDO 2.1 String name default "" Name of the fetch plan. Since: JDO 2.1 | |
javax.jdo.annotations.FetchPlan.maxFetchDepth JDO Annotation Attribute in javax.jdo.annotations.FetchPlan int maxFetchDepth default 1 The depth of references to instantiate, starting with the root object. Since: JDO 2.1 |