ObjectDB Database Search

151-200 of 200 results

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

Setting temp directory location in ObjectDB

), JDOHelper.class.getClassLoader()); pmf.setMultithreaded( true ); pmf.setNontransactionalRead( true

Spring Transactions (@Transactional) within ObjectDB

setting a system property:     System.setProperty("objectdb.temp.auto-flush", " true "); before loading ObjectDB, or as a JVM argument: java -Dobjectdb.temp.auto-flush= true ... support Support

JPA vs JDO - which is more efficient for OneToMany queries?

ObjectDB Vector orders; } @Entity class Order { } It is true , however, that in ORM-based ... Order to Customer in the above example is more efficient), but that is true for both JPA and JDO

What role is the JDO in ObjectDB?

and that its reliance on bytecode enhancement caused it to be unfairly stigmatized. This was probably true ... except the JDO reference implementation itself (DataNucleus). However, it is true that JPA

Request clarification of changes to accessor enhancement policy (non-getter prefix instead of getter suffix) AND annotations

" the annotations from the true accessors to the hidden objectdb ones was always fragile, and has caused ... ;The original strategy of "moving" the annotations from the true accessors to the hidden objectdb

Why are my Map entries not stored?

, cascade=CascadeType.ALL, mappedBy = "ticket",     orphanRemoval= true ... = FetchType.EAGER, cascade=CascadeType.ALL, orphanRemoval= true ) @MapKey(name="state") @MapKeyEnumerated

Items in list are doubled, when the entity class is not enhanced

;         cascade= CascadeType.ALL,orphanRemoval= true ) List ... become dirty just by changing a mapped-by field (this was also true for reflection mode until build 2.2.6

Should I be able to persist a JFrame (or gui components in general)?

"); contacts = qryListContacts.getResultList(); NewJFrame a; a = new NewJFrame(); a.setVisible( true ); em ... will still be true . First, there ought to be a system that at least takes into account the idea

High memory consumption even after close() of EntityManagerFactory

; System.setProperty("objectdb.temp.avoid-page-recycle", " true "); This can also be set as a JVM argument: java ... -Dobjectdb.temp.avoid-page-recycle= true In addition, this memory

Lazy loading does not work - crud takes long

; @OneToMany(cascade = CascadeType.ALL, orphanRemoval = true , mappedBy="project",fetch = FetchType.LAZY)   ... = CascadeType.ALL, orphanRemoval = true , mappedBy="project",fetch = FetchType.LAZY)    

How best to unbind all names?

My JDO application does inserts with binds, and then subsequently does bulk deletes using this code: pm.currentTransaction().begin(); Extent extent = pm.getExtent(ABC.class, true ); Query q = pm ... ). It is true that in ObjectDB 1.x the free edition had no index support. support Support

Extra uninitialised entities spawned on merge()

_MERGE = true ;     /**      * @param args the command line arguments ... ; }     } }   Case: DO_PERSIST_BEFORE_MERGE = true : If I create an Element

Sample JDO Architecture for Follow Up Questions

PersistenceManager, which is set for multiThreaded= true . * There are a limited number of threads ... , true ) may be all that is needed, so no overhead for extend, queries, or indexes. * Persisted

Error 363 - Failed to read value of inverse relationship

, avatarEnabled = true ; @Column(nullable = false) private String playerName, password, email; @Temporal ... ; }         return true ;     }      

ObjectDB fast queries

= "idValue", nullable = true ) private PollenGenusEntity pollenGenusEntity; @ManyToOne(fetch = FetchType.EAGER) @JoinColumn(name = "pollenSpeciesEntityId", referencedColumnName = "idValue", nullable = true

Issue with orphanRemoval and multiple EntityManagers

with orphanRemoval set to true . I use a new EntityManager for each transaction (which normally happens in ... ;   @OneToMany(cascade=CascadeType.ALL, fetch=FetchType.EAGER, orphanRemoval= true )  

ClassCastException of same object type

();   for(XCCompetitorCount ico : list){    cop.add(ico);   }   this.loaded = true

_PersistenceException: Type is not found on getSingleResult.

= "estudiante", cascade = CascadeType.ALL, orphanRemoval = true )     private List

Problem on JPA Merge Entity.

which methods it is true and in which false? In addition, verify that the same EntityManager is used

Filename.odb$ Persisting Issue

;       emf CLOSED: " + !emf.isOpen()); } Output is true

JPA inheritance issue with ObjectDB - Field not found in type error

: " + item); } } return "/emr/reports/vtms?faces-redirect= true "; } buddhika75 M H B Ariyaratne

Possible cause for "Enhancement of type ... is old and cannot be used"

), and only when I had 'objectdb.temp.no-detach' true . When I had 'objectdb.temp.no-detach

Database is erased after deploying a new web application version

". If that's true , I'll be glad to hear about such a solution. Thanks in advanced, Yotam

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

Issue with cascade delete & add/remove

of Address which cascades deletes (orphanRemoval= true ) to its children which is what we want ... (cascade = CascadeType.ALL, orphanRemoval = true )         private List

ClassCastException in Tuple.get

( true ); cq.where( cb.equal(joinProvidingPerson, storedProvidingPerson) ); TypedQuery query = em ... ( true ); //... Demand demand = (Demand)tuple.get("d"); DemandAnswer answer = (DemandAnswer)tuple

ObjectDB 2.5.1

switching in master-slave replication. Fixed a bug in applying orphanRemoval= true by default on mapped by

ArrayIndexOutOfBoundsException on flush

(orphanRemoval= true , cascade=CascadeType.ALL) private Map _nodes; The TaskNode contains a further Entity