Internal Website Search

101-150 of 178 results

JPA does not seem to be db agnostic

.class); Root root = query.from(Friendship.class); Path path = root . get("username"); query

Query results are not up to date for entities, not primitives

detail all the code of generic functions, but a piece of logic is this: private void root (Class type) {   Root root = criteriaQuery.from(type); } private void select(Object object) {  

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

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

Time Sequence Object Command DB

; The database can be branched (and forms a tree with the root at the top and leaves at the bottom); the user selects a leaf to load which is linked up to the root and then the DB is loaded from the root

Replaying recorded requests...

the root directory of my web project and now it is being read. So, I think for now I can live with it in 2 locations: project root for development, and WEB-INF/objectdb.conf for deployment. The question

Attempt to begin a new transaction when a transaction is active

._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause com.objectdb.o._PersistenceException: Attempt to begin a new transaction when a transaction is active root cause

Storing objects problem

a list of other devices which are also type Device. My root device information are saved properly as ... = interfaceMy;   } } } kiki Kristijan Your code persists only the root object. If you want to cascade

Memory Leak in EntityManagerFactory ?

and of course running garbage collector) 5. the gc root of all those objects is our single ... is, that there are 248 com.objectdb.jdo.PMImpl Objects left, and the root gc is as well the EntityManagerFactory

Failed to synchronize replicated database

: The replicated databases on the slave server are automatically generated under a special root directory,  $replication , under the server data root directory. Starting a new replication of an existing master

Fetching Collections Puzzle

that every Node in my graph is at some level descendant of the root Node. I have been looking for an optimum ... Paul Kant Thanks Erick, I was messing up with the EntityManagers, which was the root of the problem. Have a beautiful day ! paulk Paul Kant

TYPE Expression

;       Root e = cq.from(A.class);        ... error: private void applyFilters( Root from, CriteriaQuery query, CriteriaBuilder builder) { query

Like fails if both underscore and percent are used

.criteria. Root ; import java.util.List; import static org.junit.Assert.*; public class LikeTest { @Entity ... (); CriteriaQuery query = builder.createQuery(StringHolder.class); Root c = query.from(StringHolder

ObjectDB is opening too many sockets

of  SSLSocketImpl and similar classes (in the 3 hprof files). However, trying to find the GC roots ... hprof files). However, trying to find the GC roots that hold these instances (using Java Virtual VM

EM close causes an exception

case, you have 2 distinct tmp directories for the 2 JVMs (if possible, empty the root tmp directory ... that the tmp directory has not been created due to no permission? Can you try running the test with a root user

How to use JFXTreeTableView?

How to show in JFXTreeTableView a country like Root with its cities and the city with its communities? I have three classes, Countries, Cities and Communities. The Countries class relates ... the localities. My question?. How to show in JFXTreeTableView a country like Root with its cities and the city

Need disk usage and delete some old files

file system root by: File root = com.objectdb.Utilities.getServerFileSystem(     

mapping file is not being loaded

itself is running in client-server mode using configuration contained in the default location (objectdb root

Is there a way to set EAGER fetch on all "ToMany" collection relationships

if all the objects are reachable from some root that you load. support Support

Problem with Criteria Querys

. Root ; public final class MyTestCase {     public static void main(String[] args) 

Mismatch client-server protocol prefix

client-server protocol prefix] with root cause com.objectdb.o.UserException: Mismatch client-server

Does ObjectDB create one instance of each entity class on (web app) load ?

and inspect each instance, each one has a GC root with a  path (from the instance) like: this r : UTY _b

find() cost unreasonable time!

Hi, I make a full binary tree of 4095 node, I check the first 9 node, but the root cost 24 seconds, why? Result: =========== find time @ 24.125000 getSons time @ 0.000000 1 : type:Nodes, sons:2 child : 2 child : 3 Iterator time @ 0.000000 find time @ 0.000000 getSons time @ 0.000000 2 : type:Nodes

Problem with distinct select, order by and equivalent alias/attribute path

the queried root entity). I will post a thread there to see if someone can fix it. For so long I

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

VisualVM) and also search for nearest GC roots to relevant ObjectDB objects. support Support

virtual servers and one file

fill the heap and whether they are reachable from root objects, etc. support Support Good morning

newbie - lots of exeptions

? Are there additional stack trace lines in the log (the root cause is missing)? support Support

osx menu item about window

osx menu item (for starting/stopping server, viewing config files, data roots , etc) is extremely useful. However, currently the about box doesn't show the current jar version of the server (and with rapid updates, it's difficult to know which version of the server is currently running, and track

How to package orm.xml when using EJB in WAR?

and Maven correctly copies META-INF and all contents into the root of jar file when the (EJB) project

Calendar in Criteria Querys

;   CriteriaQuery query1 = cb.createQuery();         Root e

How to use regular expressions in Criteria Builder

;  CriteriaQuery q = cb.createQuery(TempPhysicalPart.class);      Root c

Dont want to use Proxy Class

of persistable proxy classes may affect the app behaviour.  I have been trying to understand root cause

java.lang.ClassCastException: CriteriaQueryImpl cannot be cast to java.util.List

;and then execute the query using getResultList :     criteriaQuery.select( root );  

Use temporary files to enable very large transactions

well as paths to these objects from root objects (to see why they are reachable and cannot be garbage ... root objects. Before the flush has been executed, the test persisted 10.000 entities.   btc_es

NPE at com.objectdb.jpa.JpaQuery.getResultList

{ CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery query = cb.createQuery(); Root fromMomentPayload ... ();             Root fromMomentPayload 

Issue with TYPE expression in Criteria API

.persistence.criteria. Root ; public class T605 {     public static void main(String[] args ... ;       Root e = cq.from(Customer.class);      

huge heap usage

about the roots and paths that keep these objects in memory (particularly roots and paths

ArrayIndexOutOfBounds with Critera API and function call

with CriteraBuilder.function("$1.getAge", Integer.class) ($1 is a valid path we've goot from our root selector). NOTE ... goot from our root selector) I cannot create yet another sample as creating samples takes quite some

Weird issue with variable naming

us without ordering. The issue is that the name of the root variable is $1 as well as the name ... .criteria. Root ; public final class F329 { public static void main(String[] args) {  

stress test -> com.objectdb.o.InternalException: null

] with root cause [ObjectDB 2.5.5] Unexpected exception (Error 990) Generated by Java HotSpot(TM ... ] with root cause com.objectdb.o.UserException: Mismatch client-server protocol prefix at com.objectdb

Resource leaking via a rogue Shutdown Hook

to a garbage collection root after stopping is via the hook. Lachezar Lachezar Dobrev Thank

ArrayIndexOutOfBoundsException on flush

to put a test together but we're taking a slightly different root at the application level to work

JDO PersistenceManager.getSequence() returns null sometimes

{ private String message; public Thing(String mess) { message = mess; } } package.jdo (in the root

Cascade.ALL with LAZY fetchtype does not clean up all references on remove

Hello, I have a tree of entity classes that reference others using Cascade.ALL in combination with FetchType.LAZY. If I now delete a root entity using EntityManager.remove all leaf nodes will not be deleted. This only applies to the leaf nodes. If I add an additional the behaviour changes

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

with strong references from GC roots . support Support We have scenarios in which we open up to lots

Feature suggestion: auto-detection of entities via persistence.xml extension

file. The classpath root that contains the persistence.xml file and any jar file specified with jar

com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection

have eventually got to the root of the problem insofar as I have implemented many of my properties

Exception in thread "ODB-StoreHandler-5094" java.lang.NullPointerException

to these failures, as there are no timestamps that I can use for cross-referencing. Can you please determine root

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

Server out of memory exceptions

databases. (If you think this is the root of the problem then I can switch it off across the board