ObjectDB Database Search

101-150 of 200 results

persistence.xml classes not respected by ObjectDB

have already tried a couple of times. The lucky part is that I have the old DB on my development machine. By adding class by class into that one, it seems that they ODB didn't merge all classes, as it does if I ... the fact that they don't appear in the development DB, the DB that got added class by class, as

find repeated records by JPQL

.getResultList(JpaQuery.java:636) at image.cleanDB.main(cleanDB.java:19) Caused by : com.objectdb.o.UserException ... .objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627) ... 1 more Caused by : java.lang.OutOfMemoryError ... Subqueries are not support by ObjectDB yet - see this feature request . Getting an OutOfMemoryError

Multi threading on DMOs by lazy loading

It is possible to use lazy loading on fields of attached entities by several threads? Example: class EntityZ { @OneToOne(fetch = FetchType.LAZY) EntityX fieldX; @OneToOne(fetch = FetchType.LAZY ... fieldX by lazy loading. Thread2 access fieldY by lazy loading. Thread3 access list by lazy loading

How to disable use of graphic windows by objectDB

:223) at com.objectdb.Server.run(Server.java:107) at com.objectdb.Server.main(Server.java:66) Caused by ... .objectdb.Server.main(Server.java:66) Caused by : java.net.UnknownHostException: GhostRider: Name or ... .objectdb.Server.run(Server.java:107) at com.objectdb.Server.main(Server.java:66) Caused by : java.net

UserException: Package com.example.model is not found by the enhancer

get the exception: com.objectdb.o.UserException: Package com.example.model is not found by ... by different class loaders and the Enhancer do not have access to the classes. Enhancing by invoking

Group by date / time

Hi, I'm trying to create reporting query that will return entities grouped by year / mont / day ... WHERE YEAR(record_date) = 2009 GROUP BY YEAR(record_date), MONTH(record_date) or maybe something like this: SELECT COUNT(id) FROM stats WHERE YEAR(record_date) = 2009 GROUP BY DATE_FORMAT(record_date

Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped- by attribute (yeah ... , go the MyEntity class and remove "mapped- by ". You obtain 1 second max of query fetch. So my performance ... = "myEntity") // Test by adding / remove "mappedBy" public MyEntityChild getEntityChild() {  

Need help to analyse very high memory usage by objectdb (PRU, SEV, VAL[])

exceeded" exception. Nearly 90% of the memory are taken by com.objectdb.o.PRU (49%) com.objectdb.o.SEV ... /query/domain/objectdb.com Forum Thread Need help to analyse very high memory usage by objectdb objects (PRU, SEV, VAL[]) has been created. btc_es BTC EmbeddedSystems This may be caused by large insert

Connection is closed Caused by: java.io.EOFException

after an undetermined period. Caused by : com.objectdb.o.UserException: Connection is closed at com ... .createEntityManager(EMF.java:160) ... 39 more Caused by : java.io.EOFException at com.objectdb.o.NTS

Null returned by Persistence.createEntityManagerFactory

the application I get an exception. The exception is ultimately caused by a null pointer on the line "em ... it is, because stack traces are occasionally inaccurate. Try to change your code by moving suspected lines to separate methods, etc. support Support

Getting java.lang.ArithmeticException: / by zero

() is throwing the following exception ava.lang.ArithmeticException: / by zero at com.objectdb.td.remove(td.java ... Binit Bhaskar This division by zero occurs in some hash table that happens to have a 0 size (but I

Unable to repair DB by Doctor.

Hi, I am unable to repair a database by Doctor. Getting following error. com.objectdb.o.UserException: Failed to locate field field com.apps.test.ContactTab.col8 using reflection at com.objectdb.o ... ) at com.objectdb.o.DCM.j(DCM.java:112) at com.objectdb.Doctor.main(Doctor.java:10) Caused by : java

find out if an entity is refered by other entities

Hello, it is possible to find out if a child entity is just referenced by other parent entity types. But the types of the parent entities are unknown. Is there a possibility to find out if an entity is referenced? best regards btc_es BTC EmbeddedSystems You can only find it (using a query

Bug: ClassCastException by retrieval

tn3 = em.find(tNode.class, 1);   System.out.printf("find by retrieval : %s %n",tn3.getTa

Query by array element

MyEntity that wraps the array access operation and then use that method in the query. It is supported by

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results

Internal ObjectDB error by read the primary key

covered by the fix of 2.6.6_05. Build 2.6.6_06 should fix it. Unfortunately it is difficult to cover

Retrieval by Access bug?

of objectC, and I cant find any reason for that. Could be any bug in ObjectDB when I retrieve by navigation

Will Entire JPQL Supported by ObjectDb?

JPQL features are not supported yet by ObjectDB. The main missing feature is subqueries

Finding an object by its datetime

. I want to search for objects by exact timestamps.   takada Takumi Adachi It should work

Group by: list if no aggregate function is specified

Hello! In a query like SELECT parent, children FROM Parent parent LEFT JOIN p.children children GROUP BY parent  maybe it would be good if it will return a list of Object[2], where the second object is a list of children of a parent. Because creating a query to get a list of parents

java.sql.Time field off by 30 minutes

java.sql.Time field off by 30 minutes

getting "Unexpected total page count" error when diagnosis mu db by ObjectDB doctor.

getting "Unexpected total page count" error when diagnosis mu db by ObjectDB doctor.

Can you implement fastest Native JPA for MySQL by ClusterJ like?

Can you implement fastest Native JPA for MySQL by ClusterJ like?

Version 2.5.6 enhancement problem solved by updating to version 2.5.7_03

Version 2.5.6 enhancement problem solved by updating to version 2.5.7_03

JPA Query API

, which retrieves all Country objects from the database, is represented by both q1 and q2 . When you build ... JPA, building queries by passing JPQL query strings directly to the createQuery method is called ... named queries , by using the @NamedQuery and @NamedQueries annotations. In JPA, it is a best

Running JPA Queries

of a parameterized type by using an enhanced for loop: for (Country c : results) { System.out.println(c.getName ... result object. However, you must then extract the object from the result collection, for example, by ... )query. getSingleResult (); By definition, an aggregate COUNT query always returns one result. In

Blocked by find

, Object obj)" method which is synchronized and attempts to load an object by id using the EntityManager ... : BLOCKED on rbccm.felix.objectdb.workflow.ObjectDbInstanceContainer@9c71a4 owned by : DEV1-WSAgent-1 ... @254e85f4 owned by : ODB-FileWriter Total blocked: 789 Total waited: 616 Stack trace: com.objectdb.o

Bulk load of eager mapped by (inverse) relationships

When a collection of objects is retrieved by ObjectDB (e.g. by a query) ordinary referenced ... . However, inverse (mapped by ) references that have to be loaded eagerly currently do not ... a separate client-server round trip. Future versions of ObjectDB should load eager mapped by (inverse

InternalException caused by OOM: Metaspace

.5_05] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0 ... ) and the next part: Caused by : java.lang.OutOfMemoryError: Metaspace at java.lang.ClassLoader

Lazy retrieval by access not working correctly

I have a problem loading lazy associations by access/navigation with an @Embedded attribute containing an @ElementCollection which is lazy loaded.  I'm not sure if the same problem exists ... { ... @ElementCollection // lazy loaded by default private Map values; ... } @Stateless public class

Incorrect entity returned by query

Incorrect entity returned by query

JPA Criteria Query Expressions

expression handling by using a minimal set of reusable interfaces, so many different types of expressions are represented by the same Expression interface.  Core expressions The following interfaces

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is also affected by other elements in the configuration file, such as the and elements. The default ... server. Every database file in the data directory and its subdirectories can be accessed by the server

Schema Update

the original name (specified by the required name attribute) to the new name. All classes in ... , the class name changes from the original name (specified by the required name attribute) to the new name

NetBeans/JPA Spring MVC Web Tutorial

manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest JPA entity and all the Guest entities

Eclipse/JPA Java EE Tutorial

can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity and all the Guest entities are stored in an ObjectDB database. Required Software

Eclipse/JPA Web Application Tutorial

. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by ... is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity

Getting Started with JPA - Maven Project

The Getting Started with JPA tutorial provides step by step instructions on how to build a simple JPA database driven application in Eclipse or NetBeans . Building a new application step by step ... ) If Maven is installed - extract the zip and run the application from the command line by : mvn test

JPA Web Application Tutorial

can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a  Guest entity and all the  Guest entities are stored in an ObjectDB database

Step 2: Entity Class and Persistence Unit

To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window ... a text editor ( by right clicking and selecting Edit or by double click and then moving to the XML

NetBeans/JPA Java EE Tutorial

. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity and all the Guest entities are stored in an ObjectDB database

Step 5: Add a JSP Page

] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... a simple form for signing the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in

Step 5: Add a JSP Page

] dialog box by right clicking the WebContent node (in the [Package Explorer] window), selecting ... the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in the previous step). The next step

Step 5: Add a JSP Page

] dialog box by right clicking WEB-INF under src/main/webapp (in the [Package Explorer] window ... the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's  guestDao attribute that is set by the controller in the previous step

Step 4: Add a Servlet Class

box by right clicking the guest package node (in the [Projects] window) and selecting New Servlet ... the page output. Notice that operations on the database are carried on by the  GuestDao session bean, which is instantiated and injected by the application server into the  guestDao field

Spring MVC and JPA Tutorial

a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window ... . A GuestDao component is automatically constructed and injected by Spring into the guestDao field

Step 6: Set the Spring XML

editor ( by right clicking and selecting  Open With Text Editor or by double click

Step 1: Create a Java Project

We start by creating a new NetBeans Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ). The name of the Main class should be tutorial.Main . Verify that exactly this case sensitive fully