ObjectDB Database Search

51-100 of 200 results

Multi part paths in a composite index must have the same length

Hi, I am trying to create some index in a DB - but I get an exception when i try to commit. Exception in thread "main" [ObjectDB 2.6.0_01] javax.persistence.PersistenceException Invalid index path ... wrapper. Multi part paths in a composite index must have the same length. Therefore, the following

$temp property not evaluated properly when used in log path

$temp property not evaluated properly when used in log path

Navigation through Path to evaluate collection

Navigation through Path to evaluate collection

migration path from JPA / Hibernate

migration path from JPA / Hibernate

Help with 'not like/lower' query

): ParameterExpression stringProp = criteriaBuilder.parameter(String.class); Path path = root.get(property ... = criteriaBuilder.like(criteriaBuilder.lower( path ), stringProp); stringMapOfValues.put(stringProp, property ... = criteriaBuilder.notLike(criteriaBuilder.lower( path ), stringProp); stringMapOfValues.put(stringProp, property

UserException: Invalid configuration in 'internal' - Check permissions

path . With such information I have tried to create an entityManager, in each slave, as follows ... because ObjectDB doesn't have a permission to create a log file in the default path (as specified in ... on the log directory and ObjectDB Home , and either change permissions for the default log path , or

Can I Disable the Creation of the "log" Directory?

(attached to forum thread mentioned above), I disable logging (by setting log path ="") but the "log ... which you set the log path to empty, since apparently the only place in which "log" is specified in ... . Path ; import java.nio.file. Paths ; import java.util.Properties; public class Test{ public static void

Embedding ObjectDB on server application

at the connection file path for the persistent factory. So if I want to pass in the database file path , with relative path , where exactly is it relative to? So I did a test and just wrote:    ... the classpath (i.e. JPA is available but not ObjectDB). It could also happen if the path

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder

- type to be downcast to Return: MapJoin object of the specified type Since: JPA 2.1 Path treat ( Path   path , Class  type) Downcast Path object to the specified type. Parameters: path - path type - type to be downcast to Return: Path object of the specified type Since: JPA 2.1 Root treat

InterfaceRef jakarta.persistence.criteria.MapJoin

, Path , PluralJoin , Selection , TupleElement The MapJoin interface is the type of the result ... the {@code Map} that is the target of the join Since: JPA 2.0 Path key () Create a path expression that corresponds to the map key. Return: path corresponding to map key Since: JPA 2.0 MapJoin

Setting temp directory location in ObjectDB

file path is calculated using:     String dirPath = System.getProperty("com.objectdb.recovery. path ");     if (dirPath == null) {       ... ;m_recoveryFile = new File(dirPath, ".$" + m_dbFile.getName() + "$"); So you can change the path by

Catching exceptions from client-server mode online backup

); backupQuery.setParameter("target", "relative- path "); backupQuery.setParameter("name", backupSubdir); In case the relative- path is not writable we've get: com.objectdb.o.UserException: Failed to create a new file '/absolute- path /relative- path /database.odb' at com.objectdb.o.MSG.a(MSG.java:77) at com.objectdb

ObjectDB within a resource adapter module and Java EE Connector Architecture

an XML file or you can simply provide the file path of the ObjectDB database instead ... that replaces a logical path with a parameter (similar to $objectdb in the url) with a value from ... is the same in both case, but at least the path is clear. Note also that the user and password

Online Backup in client-server mode

then it is interpreted as the path on the server machine to which to write the backup file and no temporary file ... it seems, that the Absolute path on Linux/MacOS is not working. When I enter the path /tmp/odb_backup it is still creating ... parameter it represents a path relative to the ObjectDB home directory, and in client-server mode, 

Failed to write to ObjectDB log file

to create a log file at the default path . Possible solutions: Change the location of the log files to another path . Grant the ObjectDB process permission to write to that path . Disable logging by specifying an empty path . support Support In my project I want to include objectdb.jar into my jar program

Failed to read DB file while online backup is running

._JdoUserException: Failed to read from file '/ path _to_db/dbFile.odb' NestedThrowables: java.io ... by: com.objectdb.o._JdoUserException: Failed to read from file '/ path _to_db/dbFile.odb ... version. jakab Gergely Jakab Unfortunately the "Failed to read from file '/ path _to_db/dbFile.odb'" error

How to convert a boolean to an int in the query?

;     Path boolCaptial = c.get("capital");        ... .class); Path boolApproveEmail = c.get("approveEmail"); Expression intApproveEmail = boolApproveEmail ... .class); Path boolApproveEmail = c.get("approveEmail"); Path boolApprovePhoneNumber= c

Configuration and Activation Code in ObjectDB 2.x

Manual. The location of the configuration file is discussed in the Configuration Path  section ... , it is mentioned that i can set the conf file path through System.setProperty("objectdb.home", "/odb"); If i am packing the conf file in my jar file, what should be the path that i

ClassRef jakarta.persistence.PersistenceConfiguration

Since: JPA 3.2 PersistenceConfiguration mappingFile (String name) Add the path of an XML mapping file loaded as a resource to the configuration. Parameters: name - the resource path of the mapping file Return: this configuration Since: JPA 3.2 List mappingFiles () The configured resource paths of XML

LEFT JOIN FETCH over empty embedded collection returns no results

First of all, thank you for promptly implementing JOIN FETCH over nested paths in response ... may be with the expression  c.bList.val . Path expressions are considered as INNER JOIN by JPA, although apparently it makes sense to consider path expressions in LEFT JOIN FETCH differently. support Support

Does ObjectDB support lazy loading?

void main(String[] args)   { String path = "test.odb"; EntityManagerFactory emf = Persistence.createEntityManagerFactory( path ); EntityManager em = emf.createEntityManager(); em.getTransaction ... ; String path = "test.odb";     EntityManagerFactory emf = Persistence

Help with JPA2 Criteria and conditional operator grouping

; ParameterExpression nameParam = builder.parameter(String.class);   Path namePath = root.get("companyId");   Path conditionOnePath = root.get("conditionOne");   Path conditionTwoPath = root.get("conditionTwo");   Path conditionThreePath = root.get("conditionThree");     c.select

PersistenceException UserException: Failed to validate persistence.xml

. What is the "!" character at the beginning of the path , is it part of your path ? Could you try moving your project to a path with no special characters? I don't know if it would solve the exception but it is worth trying. support Support Thank you. But path acts right way. Finally I've got it. I

ObjectDb.conf Defaults

javax.jdo.PersistenceManagerFactory; import java.nio.file.Files; import java.nio.file. Path ; import java.nio.file. Paths ; import java.util.Properties; public class Test{ public static void main(String ... Directory: %s%n", currentDirectory); Path objectDbConFile = Paths .get(currentDirectory, "objectdb.conf

Performance Issues After Migrating to ObjectDB - Urgent Assistance Required

# # Note: Please set the JAVA_VM and OBJECTDB_JARS variables!   # Path of Java VM (a complete absolute path can be specified) JAVA_VM="java"   # Path of ObjectDB jar file (a complete absolute path can be specified) OBJECTDB_JARS="objectdb.jar"   # Prepare args (an input odb file

ODB tries to create log files inside its own jar on Win7

including in Eclipse plugins so it seems to be related to packaging. Configuration and logging paths ... a special protocol (rsrc:) - the result could be a failure to handle these paths . Setting  ... a new project, added objectdb.jar to the build path as an external jar, and wrote this one-class

Replication issue, Replayer failing due to NullPointerException.

/" on the slave; "/usr/test/backend/db/" is the data path and where all the DB's are on the master ... copying the contents of $replication into the directory above it(the "data path "), this seems like a bug ... the path etc. which isn't correct as it was running as root, I just had this suspicious feeling

lockfiles in client/server mode

using the same directory for their temporary files. Changing the temporary directory path ... this configuration file is probably not used (see rules for the configuration path on this manual page ... : A temporary directory will not be created in the default location if you change the temporary path

How to configure where the ODB is stored?

Howard Worden You may specify any file path (e.g. an absolute path   "C:\data\my.odb ... ") + "/ /objectdb"); but i find  log folder in the path defined for objectdb.home but  the .odb ... file name with no path then the current default directory will be used, which could be the Tomcat

doctor temporary files

Zwicker You have two options: If the Doctor has an accessible configuration file - set the temp path . If there is no accessible configuration file, or there is one with the default temp path $temp , which indicates the default system temporary path , you should be able to change that default

MapJoin.key() - JPA Method

JPA Method in jakarta.persistence.criteria.MapJoin Path key () Create a path expression that corresponds to the map key. Return: path corresponding to map key Since: JPA 2.0

MapJoin.value() - JPA Method

JPA Method in jakarta.persistence.criteria.MapJoin Path value () Create a path expression that corresponds to the map value. This method is for stylistic use only: it just returns this. Return: path corresponding to the map value Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.Convert.attributeName

period-separated path identifying the converted attribute relative to the annotated program element ... the converted attribute, this member must not be specified. (In this case the path relative to the annotated element is simply the empty path .) Since: JPA 2.1

AnnotationRef jakarta.persistence.Convert

Annotation Attributes String attributeName default "" A name or period-separated path identifying ... , this member must not be specified. (In this case the path relative to the annotated element is simply the empty path .) Since: JPA 2.1 Class converter default AttributeConverter.class Specifies the plain

problem with lazy loading - unittest project attached

class path resource [test/LazyLoadingTests-context.xml]; nested exception is java.io.FileNotFoundException: class path resource [test/LazyLoadingTests-context.xml] cannot be opened because it does not ... omitted Caused by: java.io.FileNotFoundException: class path resource [test/LazyLoadingTests-context

PersistenceConfiguration.mappingFiles() - JPA Method

JPA Method in jakarta.persistence.PersistenceConfiguration List mappingFiles () The configured resource paths of XML mapping files. Return: all configured mapping file resource paths Since: JPA 3.2

PersistenceConfiguration.mappingFile(name) - JPA Method

JPA Method in jakarta.persistence.PersistenceConfiguration PersistenceConfiguration mappingFile (   String name ) Add the path of an XML mapping file loaded as a resource to the configuration. Parameters: name - the resource path of the mapping file Return: this configuration Since: JPA 3.2

InterfaceRef jakarta.persistence.criteria.CriteriaUpdate

: the query root Since: JPA 2.1 CriteriaUpdate set ( Path  attribute,  Expression  value ... - new value Return: the modified update query Since: JPA 2.1 CriteriaUpdate set ( Path  

InterfaceRef jakarta.persistence.criteria.SetJoin

JPA Interface SetJoin Type Parameters: - the source type of the join - the element type of the target {@code Set} Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection , TupleElement The SetJoin interface is the type of the result of joining to a collection

InterfaceRef jakarta.persistence.criteria.PluralJoin

JPA Interface PluralJoin Type Parameters: - the source type - the collection type - the element type of the collection Super Interfaces: Expression , FetchParent , From , Join , Path , Selection , TupleElement The PluralJoin interface defines functionality that is common to joins to all collection

InterfaceRef jakarta.persistence.metamodel.Bindable

JPA Interface Bindable Type Parameters: - The type of the represented object or attribute An instances of the type Bindable represents an object or attribute type that can be bound into a Path . Since: JPA 2.0 Public Methods Class getBindableJavaType () Return the Java type of the represented

InterfaceRef jakarta.persistence.criteria.CollectionJoin

JPA Interface CollectionJoin Type Parameters: - the source type of the join - the element type of the target {@code Collection} Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection , TupleElement The CollectionJoin interface is the type of the result of joining

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    Path  attribute,     Expression  value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Return: the modified update query Since: JPA 2.1

CriteriaUpdate.set(attribute,value) - JPA Method

JPA Method in jakarta.persistence.criteria.CriteriaUpdate CriteriaUpdate set (    Path  attribute,    X value ) Update the value of the specified attribute. Parameters: attribute - attribute to be updated value - new value Return: the modified update query Since: JPA 2.1

InterfaceRef jakarta.persistence.criteria.ListJoin

JPA Interface ListJoin Type Parameters: - the source type of the join - the element type of the target List Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection , TupleElement The ListJoin interface is the type of the result of joining to a collection

InterfaceRef jakarta.persistence.criteria.Join

JPA Interface Join Type Parameters: - the source type of the join - the target type of the join Super Interfaces: Expression , FetchParent , From , Path A join to an entity, embeddable, or basic type. Since: JPA 2.0 The FROM clause (JPQL / Criteria API) article explains how to use Join . Public

ODB Server tries to write a log file to a weird location

We are testing client-server architecture. Our server has the following config: path = "$temp" threshold = "64mb" / inactivity-timeout = "0" / size = "0" user = "true" password = "true" / path = "$objectdb/log/odb" max = "8mb" stdout = "false" stderr = "false" / path = "$objectdb/log/odb/archive

Alias not used in ORDER BY

Hi, I am doing something simple like final Root from = criteria.from(T.class) final Path path = from.get("someStringProperty") final Expression upperPath = builder.upper((Expression ) path ); upperPath.alias("TEST"); criteria.multiselect(from, path ); criteria.orderBy(builder.asc(upperPath)) I

Compatibility Problems Upgrading from 2.6.9_04 to 2.7.6

to 2.7.6.  The desired path was to upgrade the database servers to 2.7.6 first, followed by ... path ? Thanks,  Clinton CAPdev CAP Dev the desired path was to upgrade the database servers to 2.7.6 first, followed by the code.  Is this a supported upgrade path ? I have run into issues

Use temporary files to enable very large transactions

a location for temporary files in the configuration file . The default path is  $temp/ObjectDB ... well as paths to these objects from root objects (to see why they are reachable and cannot be garbage ... dump. The screenshots shows a summary in 'number_of_instances' and the paths to these objects from