ObjectDB Database Search

101-150 of 200 results

Searching lists within objects

", "Affleck", true );         CDI createdCdi2 = createCDI("jalba", "Jessica", "Marie", "Alba", true );         CDI createdCdi3 = createCDI("kbeckinsale", "Kate", null, "Beckinsale", true );         CDI

Pessimistic lock

: javax.jdo.option.Optimistic=false javax.jdo.option.NontransactionalRead= true javax.jdo.option.NontransactionalWrite=false javax.jdo.option.RetainValues= true javax.jdo.option.RestoreValues=false Now we use the following options in DB2: javax.jdo.option.Optimistic= true javax.jdo.option

Optimistic locking: prevent version increment on entity collection attribute

? Something like the equivalent of @OptimisticLock(excluded= true ) in Hibernate? Thanks, Farid oudjanef ... transaction. Finally I have tested it with the no-detached property set to true (System.setProperty("objectdb.temp.no-detach", " true ");). This has not made any difference. The collection of readings

Pre-detach loading: retrieval by navigation not working in if statement

().getValue() //THIS IS NEVER REACHED, ALTHOUGH IN FACT lz.present.value IS true IN THE DATABASE //lz ... the problematic if statement, and 'present.value' is loaded (and true ) afterwards, in those cases ... be ' true ' in database //Perform some contrived usage here .. } if (lz.getPresent().getValue() != null

Cascading makeTransient

makeTransient(A, true ) with a FetchPlan containing FetchGroup with category ... method PersistenceManager.makeTransient(object, true ) with a correct FetchPlan? The documentation of this method states that:  If the useFetchPlan parameter is true , then the current FetchPlan

openejb jpa jaas module

.getPassword(); if(password.equals(pass)) { succeeded = true ; return true ; } else { succeeded = false; return ... File | Settings | File Templates. } succeeded = true ; //Principals and Credentials } catch ... ().add(principals1); } } return true ; //To change body of implemented methods use File | Settings

OutofMemory error with Object DB 2.0

(uniqueTestId, true , true );              ... = getPersistenceManager(uniqueTestId, true , true );            

JDOHelper.isDetached failure ?

(); } With this as the persistent class: @PersistenceCapable(detachable=" true ") public class TestClass ... ; } } Prints out the following: true false   So it seems that the JDOHelper.isDetached method isn't doing ... \objectdb.jar Test gives the correct output: true true support Support That works for me.  Thanks again for your prompt response. sjzlondon Steve Zara

Refreshing a dirty object causes permanent JDOOptimisticVerificationException

;     TestEntity accidentalWrite = (TestEntity) pm.getObjectById(oid, true );     ... toUpdate = (TestEntity) pm.getObjectById(oid, true );              ... ; while ( true ) {                 try {      

No clue how to query with collection

= true I have the problem that I do also need to select all Customer's which either don't have any item ... with active= true set.. how to do that?? All I actually care about is the ordering, not the selection ... a WHERE a IS NULL OR a.active = TRUE ORDER BY a.street If it doesn't work, consider maintaining

ObjectDB License Error I got

: // jpa.setProperty("objectdb.temp.no-detach", " true "); emf.setJpaProperties(jpa); return emf; } @Bean ... .charset=UTF-8 server.servlet.encoding.enabled= true server.servlet.encoding.force= true spring.jpa.open-in

Composite indexes

; // some integers describing photo characteristic Boolean isPublished; // either true or false ... the smallest subset of unique records (like for example "isPublished" which is either true or false ... .filterDescription AND i.isPublished = true ORDER BY i.lastModificationDate Basing on this example

persistence.xml classes not respected by ObjectDB

! This problem doesn't appear anymore. It seems that  true is the one that works. Using just  ... , so specifying true , false or no value at all made no difference ... ; true should exclude unlisted classes, so this will be changed starting next build. It should not

Help with JPA2 Criteria and conditional operator grouping

.companyId=:p1) AND ($1.conditionOne= true )) AND (($1.conditionTwo=false) OR ($1.conditionThree=false ... (conditionOnePath, true )),         builder.and(        ... query looks like this: SELECT $1 FROM Company $1 WHERE ($1.companyId=:p1) AND ($1.conditionOne= true

Failed to resize file - file system limitation error

to set the objectdb.temp.concurrent-file-read system property to true when running your server (-D objectdb.temp.concurrent-file-read= true ) . If set to true , try false . If not tried already, try

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity ... class TestLazyOneToMany {     /**      * If true the view/output ... _CLOSE = true ;     /**      * @param args the command line

Java 9 support

.7.2_05 modular JAR (I repackaged it to make it a true module). I can confirm, for my use case ... , until I can get the real module from the actual author with true Java 9 implemented knowledge ... and approach is designed for "just me" to get true Java 9 without having to wait on third parties

Problem with entities detection

) and "exclude-unlisted-classes" to true for the persistence unit of ObjectDB. https://i.imgur.com ... hibernate.Profesor hibernate.AsignaturasAlumno true com.objectdb.jpa.Provider test.Persona test.Asignatura test.AsignaturasProfesor test.Alumno test.Direccion test.Profesor true   jlmedina Javier

Query vs Extent for retrieving data

, true ); I get an Extent back with all of the data as I would expect. However, if I execute a Query ... both set to true , but that's it. carr.onstott Carr Onstott I should note that I tried moving ... you can either annotate these fields with @Persistent(defaultFetchGroup=" true ") , or use fetch

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 ... @Unique instead of @Index(unique=" true "). Boolean values as strings ( " true " ) is widely used in JDO

Left join fetch behaviour doesn't retrieve children?

optimization: objectdb.temp.no-btree-batch objectdb.temp.no-multivar-batch Setting them as " true ... two query optimizations, e.g. with JVM args: java ... -Dobjectdb.temp.no-btree-batch= true -Dobjectdb.temp.no-multivar-batch= true Please report if disabling these optimizations makes any difference. support

mapping file is not being loaded

;     true               ... ; exclude-unlisted-classes to false rather than true . support Support After being pulled away from

Migration problem

="tinyint(1) default 1") // @Column(columnDefinition="BOOLEAN DEFAULT true ") @ColumnDefault(value = " true ") protected boolean enabled; }       package com.manage.jpa; import org

Persist not working when ObjectDB and another db is used in the same application (through spring) with different tx managers

.dialect.MySQLDialect     true     true      

DB Doctor sets type to "unknown" for new fields

SELECT returns the new value): UPDATE RecordingMetaData AS r SET r.doNotDelete= true WHERE r.doNotDelete ... RecordingMetaData AS r SET r.doNotDelete=null UPDATE RecordingMetaData AS r SET r.doNotDelete= true WHERE r

Is it possible to remove parent/child entities without refresh?

", orphanRemoval = true )   @MapKey(name = "childName")   private Map children = new HashMap ();   ... ", true );   ParentEntity parentEntity = new ParentEntity();   entityManager.getTransaction

Merge with Parent/Child entities not possible

, cascade = CascadeType.ALL, mappedBy = "parent", orphanRemoval = true )   @MapKey(name = "childName ... :\\Temp\\MergeTest.odb", true );   ParentEntity parentEntity = new ParentEntity();  

Broken @ManyToOne reference

: System.out.println(child.prn instanceof AbstractParent); // true System.out.println(child.prn instanceof Parent ... ().entity(Child.class).hasSingleIdAttribute()); prints true , which is not the case since the Child class

Bidirectional OneToMany is slow on updated items

mappedBy relationships. Try: java -Dobjectdb.temp.no-mapped-by= true ... or  System.setProperty("objectdb.temp.no-mapped-by", " true ");   support Support Sorry for the late answer. Thanks the key works like intended. Stefan Stefan Mair

"Attempt to lock a non entity object" error

(PersistenceManager.class); pm.currentTransaction().setRestoreValues( true ); The first option ... ;      pm.currentTransaction().setRetainValues( true );    

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

+ ... true and Boolean. TRUE are converted to 1. false and Boolean.FALSE are converted to 0. support Support

Java methods in queries are now forbidden by default

Starting with build 2.9.5_02, arbitrary methods in queries are forbidden, unless enabled explicitly before accessing ObjectDB by: System.setProperty("objectdb.temp.unblock-query-methods", " true "); (or by running the JVM with -Dobjectdb.temp.unblock-query-methods= true ). The purpose of this change

Search with wildcards and index issue

Hi, I have a search using wildcards: SELECT $1 FROM CDI $1 WHERE $1.loginId LIKE '%*_last%2' ESCAPE '*' This works perfectly when loginId has NO annotations. Now if I add to loginId the following annotations: @Index(unique=" true ") @Column(nullable=false,unique= true ) the search no longer works. I

LAZY @ManyToOne field functions as EAGER

_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager ... TestLazyManyToOne {         /**      * If true

Wrong select results

Hello, I got a realy strange SELECT problem. In explorer query "select p  from Player p where p.confirmed==false", given me some results with p.confirmed== TRUE . And when I try to do (see image) "select p, p.confirmed  from Player p where p.confirmed==false", I getting p-confirmed- true

Unexpected exception during open the database

file. Your comment suggests that the default value for this is tag is " true " and hence index update ... to true and the database is closed before the update is completed (see the stack trace at post #1

Error during cascaded merge

= CascadeType.ALL, orphanRemoval = true , fetch = FetchType.EAGER)     @OrderBy ... = {"unit", "configDate"}, unique = " true ") public class ChannelConfigurationSet implements

Attempt to open a non existing file '/tmp/objectdb_xxxx/SortQueryItr_6.mrg'

;   System.setProperty("objectdb.temp.no-temp-file-purge", " true ");     ... ("objectdb.temp.no-temp-file-clean", " true "); You can try setting these system properties before accessing

missing merger

users use version-check="false" and others version-check=" true ". This is probably not ... .optimization.small", " true "); This is more aggressive than the default in version 2.9.3 and would cover ... -check=" true ". support Support these are the 2 databases: https://www.dropbox.com/scl/fi

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

" threshold = "64mb" / inactivity-timeout = "0" / size = "0" user = " true " password = " true " / path ... = "0" /                 size = "0" user = " true " password = " true " /                 path = "$objectdb/log/odb-client

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

.BooleanValue [null](TEST: A readonly fixed true Boolean value) INFO: RequestBean []: Persisted: com.greensoft.entity.value.BooleanValue [64](TEST: A readonly fixed true Boolean value) INFO: RequestBean []: Updated: com.greensoft.entity.value.BooleanValue [64](TEST: A readonly fixed true Boolean value

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

.GS4223.tgz if I set experimental 'objectdb.temp.no-detach' true on startup, I get INSTEAD (or maybe ... ;  System.setProperty("objectdb.temp.no-enhancement-crc-check", " true "); Set the property ... and error:     System.setProperty("objectdb.temp.no-enhancement-crc-check", " true

ClassCastException after upgrade to 2.3.5_03

follows: @Entity public class ObjectDbMessagePayload { @Id String id; @OneToOne(orphanRemoval= true , cascade=CascadeType.ALL, fetch=FetchType.EAGER) private Object payload; @OneToOne(orphanRemoval= true

spuriously objectdb objects have null references

this by using the no-detach setting: System.setProperty("objectdb.temp.no-detach", " true "); before first ... a combination of - System.setProperty("objectdb.temp.no-detach", " true "); - doing a entityManager

[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null

() { return findChartEntities( true , -1, -1); }   public List findChartEntities(int maxResults, int ... List points; public Chart() { this.points = new ArrayList (); this.reverseOrder = Boolean. TRUE

NPE at com.objectdb.jpa.JpaQuery.getResultList

( true , -1, -1); } public List findMomentPayloadEntities(int maxResults, int firstResult) { return ... () {         return findMomentPayloadEntities( true , -1, -1);   

NullPointerException using with "refresh" method

configuration. If it set to sync="false" (default, for faster operation) you may want to try sync=" true ... , also with sync=" true ". Is this a problem with the most recent version? Shall I switch back to 2.8.1_01

Unexpected exception (Error 990) on find

the forum about the key com.objectdb.disable.optimization.small= true I've tried, but there is no change ...     @Column(unique = true , nullable = false, length = 127)     private

Enhanced classes problem

: System.setProperty("objectdb.temp.no-lazy-o2o-inverse", " true "); or as a JVM parameter: java -Dobjectdb.temp.no-lazy-o2o-inverse= true ... Please let me know if it makes any difference. support Support In

InternalException when using MEMBER OF on a large list in a query

;  System.setProperty("com.objectdb.disable.optimization.small", " true "); Any ... .properties" But after adding the condition 3 4, which should always be true , the query works "SELECT