ObjectDB Database Search

151-200 of 200 results

Suspected memleak caused by bad state of EntityManager

and using. We find a slow memleak in our application recently, and by trace of Entity construct and finalize, we found the problem is caused by bad state of EntityManager. After first throwing ... and retrieved by EntityManagerFactory, and the instances of Entity constructed by ObjectDB

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by " set on @OneToMany ... - one with mapped by , second with adding entities list without "mapped by ". The difference is huge event for such small objects - 2ms (without mapped by ) vs ~50ms (with mapped by ) Is there any chance

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

how to query by properties of onetomany relations? (Error 990)

; Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_23 (on Windows 7 6.1). Please report this error ... - it should be replaced by a more descriptive error message in future versions. However, this query ... is a bit longer but it is JPA portable. ObjectDB can enforce using standard JPQL by setting

Master database switching to read-only mode, possibly caused by slave failure

, slave became unresponsive and the master switched to read-only mode. By the look of it the slave ... ) .............................................................. Caused by : com.objectdb.o.UserException: Connection is closed at com ... /objectdb/db/$replication/contextspace.odb' is closed by 30752@hardhead We did not see anything wrong

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

Extending model by "common entity"

:662) [na:1.6.0_22] Caused by : java.lang.ClassNotFoundException: pl.hplxtool.model.BaseEntity at com ... explorer or doctor. lwalkowski Lukasz Walkowski This schema change should be handled by ObjectDB ... is generated by the server). If it doesn't help - please post (or submit in a support ticket) a test case

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

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

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

a second mapping-file is ignored in persistence.xml by enhancer

will be enhanced by following output: enhancer: [java] [ObjectDB 2.6.0_02 Enhancer] [java] 3 persistable ... will be enhanced by following output, because the enhancer is apparently ignored the ormreq.xml

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

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

JPA Metamodel API

a specific type by its Class instance: // Get a managed type (entity, embeddable or mapped super classes ... . Type interface hierarchy In the Metamodel API, types are represented by interfaces that extend the Type ... interface hierarchy Managed fields and properties are represented by the Attribute interface

JPA Fetch Graphs Annotations

on entity classes. These graphs optimize database performance by specifying which attributes ... class. Graph Structure Construct the internal structure of a graph by defining individual nodes ... graph that allows the fetch plan to traverse relationships. A named subgraph is referenced by

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

JPQL support for mapped by (inverse) collections

, SIZE, MEMBER OF, IN) are currently not supported for mapped by (inverse) collections. These operations are supported for direct (not mapped by ) collections. Navigation and JOIN is supported for both direct and mapped by collections. The following test case demonstrates a problematic query

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

NetBeans/JPA Web Application Tutorial

application 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 entity and all the Guest

Step 1: Create a Java EE 6 Web Project

We start by creating a new Java EE dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button

Step 2: Entity Class and Persistence Unit

the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window ... to the project (under Configuration Files). Open the persistence.xml file in a text editor ( by right clicking and selecting Edit or by double click and then moving to the Source or XML tab in

Java EE Web 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 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 4: Run the Application

You can now run the application by right clicking the Main.java file (in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window ... by opening it in the ObjectDB Explorer : This is the end of the Eclipse JPA tutorial. Learn more about ObjectDB and JPA by reading the Manual .

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

Step 5: Add a JSP Page

] dialog box by right clicking the WebContent node (in the [Package Explorer] window), selecting ... generates the guestbook page output, which contains a simple form for signing the guestbook, followed by ... " attribute that is set by the servlet in the previous step). The next step (and the last one in this tutorial) is running the web application .

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting  ... on the database are carried on by the GuestDao session bean, which is instantiated and injected by the application

Step 4: Create an ObjectDB Data Set

the [New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window ... Points ).  Enter a data set name (e.g. Points by X ) and click Next . The database in ... ( 20 ): You may click Preview Results  to see the query results: Close the dialog box by clicking

Step 1: Create a Web Project

We start by creating a new NetBeans Web Application Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project ... : You may have to add Tomcat 6 as a new server by clicking the Add... button . Follow the instructions and specify