ObjectDB Database Search
51-100 of 200 resultsEntity can be found by find() but not by query
and sometimes we don't get the entity by query. Have you an idea what happens here? btc_es BTC EmbeddedSystems
|
|
java.lang.NullPointerException when using ORDER BY
== 0)) ORDER BY r.startDateTime DESC If we remove the ORDER BY part, the query completes OK ... : Caused by : java.lang.IllegalStateException: com.objectdb.o.InternalException: Unexpected internal ... ; Caused by : com.objectdb.o.InternalException
|
|
Strange behaviour with ORDER BY and IN
Hi, after trying out objectdb for a while now and being quite impressed by its speed and overall performance I noticed a strange behaviour where an ORDER BY - directive isn't executed as ... if we order by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter
|
|
ORDER BY problem, when String starts with language specific character
Dear all, I have a problem with ORDER BY clause. I have a simple query: select u from User u order by u.name When the name starts with "normal/english" character, records are ordered correctly ... ORDER BY clause. However, if you have to sort a large result list - it might be more efficient
|
|
ObjectDB License Agreement [ver. 2.0.4]
Please read carefully this software license agreement. By downloading, installing or using ... of this agreement will be binding, unless in writing and signed by an authorized representative of each party. 1 ... by this agreement. 3. The free edition of the Software includes restrictions on the number of classes
|
|
Database Transaction Replayer
files). Recording is disabled by default and can be enabled in the configuration . The ObjectDB Replayer ... . This feature is useful for two purposes: Recovering from a database failure by replaying the recorded operations. Reproducing problems during debugging by repeating a failure. Recording transactions
|
|
Literals in JPQL and Criteria Queries
) numeric literals. This feature is not supported by all JPA implementations. String literals JPQL ... , 'Adam' or '' ), and a single quotation mark within a string is represented by two single quotation ... escape characters (for example, "Adam\'s" and "abcd 1234" ). However, this syntax is not supported by
|
|
Logical Operators in JPQL and Criteria API
, while Java uses its own notation, which is also used by the JDO Query Language (JDOQL). ObjectDB ... , Boolean expressions are represented by the Expression interface and its descendants. For example, a Boolean path (a field or property) is represented by Path : Path isInUN = country. get ("isInUN
|
|
jakarta.persistence.criteria.AbstractQuery.getGroupList()
Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery List getGroupList() Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Returns: the list of grouping expressions. Since: Jakarta Persistence (JPA) 1.0
|
|
Mapped by fields are not initialized by JOIN FETCH in queries
As demonstrated in this forum thread , a mapped by collection field with lazy fetch mode is not initialized in results of a query that uses JOIN FETCH on that collection field (when enhancement is used). support Support Build 2.4.1_06 fixes this issue (fields are now initialized
|
|
jakarta.persistence.EntityManager
via a call to close , to allow resources to be cleaned up by the persistence provider. This approach places ... EntityManager may be obtained by dependency injection, using PersistenceContext . // inject the container ... the EntityTransaction obtained by calling getTransaction . A complete idiom for custom application
|
|
Database Replication and Clustering
master databases, slave databases ( by using one or more elements), and databases that are not ... by a server on localhost:6000 and a slave database managed by a server on localhost:6001 . In ... ;user=b;password=b" ); A composite URL contains two or more database URLs separated by a pipe character
|
|
JPA Named Queries
named queries instead of dynamic queries can improve code organization by separating JPQL query ... , you should choose names carefully to avoid collisions, for example, by using the unique entity name as ... Queries at Runtime At runtime, named queries are represented by the Query and TypedQuery interfaces
|
|
jakarta.persistence.NamedEntityGraphs
Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedEntityGraphs Implemented Interfaces: Annotation Target: Type Used to group NamedEntityGraph annotations. See Also: NamedEntityGraph Since: Jakarta Persistence (JPA) 2.1 Annotation Elements NamedEntityGraph[] value Since: Jakarta
|
|
jakarta.persistence.Converts
Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Converts Implemented Interfaces: Annotation Target: Method, Field, Type Used to group Convert annotations. Multiple converters must not be applied to the same basic attribute. See Also: Convert Since: Jakarta Persistence (JPA) 2.1
|
|
Is ObjectDB better than competing object databases?
of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA ... relational database by using an ORM JPA provider such as Hibernate, EclipseLink or Open JPA ... . The support of two standard APIs (JPA and JDO) by ObjectDB minimizes the risk
|
|
Index Definition
A composite index is an index on more than one persistent field. Define a composite index by specifying ... is sorted lexicographically by word, not by word length. In summary, if an index contains all the fields in
|
|
What is the Java Persistence API (JPA)?
) is that in JPA data is represented by classes and objects rather than by tables and records as in ... of the Java Persistence API (JPA). By interacting with ObjectDB using standard JPA
|
|
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
|
|
Removed entities can be found by query in the same transaction
Hello, we opened a transaction, load an entity from database and removed this entity by em.remove(). Afterwards the entity can be load again by query although the resulted entity have an attribute ... them available to that transaction. Every snapshot represents a picture of the database as seen by
|
|
Step 3: Define an EJB Session Bean
Operations on the database will be performed by an instance of a session bean (EJB) class that we will define in this step: Open the [New Session Bean] dialog box by right clicking the guest package ... getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class
|
|
Step 1: Install BIRT and ObjectDB Driver
We start by installing the BIRT development environment and the ObjectDB data source driver ... IDE for Java EE Developers. Update your existing Eclipse IDE for Java EE Developers environment by ... an existing Eclipse IDE for Java EE Developers environment: Open the [Install] dialog box by
|
|
Step 3: Define a Spring DAO Component
Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right ... () { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return
|
|
Step 3: Define a Spring DAO Component
Operations on the database will be performed by an instance of a Data Access Object (DAO) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right ... getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g.id", Guest.class); return
|
|
Step 3: Add a Context Listener Class
The Guest entities will be stored in an ObjectDB database, which will be represented by a JPA's ... if not existing yet) when the web application starts, by instantiating an EntityManagerFactory . The database will be closed when the web application stops (or when the web server shuts down), by closing
|
|
Step 6: Design a BIRT Report Table
In this final step we will add a simple table to the report: Open the [Insert Table] dialog box by ... ) layout. Set the column number to 2 , number of details to 1 , select the data set (e.g. Points by X ) in the third field and click OK . Fill the table with data by dragging the x and y columns from
|
|
Step 5: Add a JSP Page
] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [Projects] window ... , which contains 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 guestDao attribute that is set by
|
|
Step 2: Entity Class and Persistence Unit
the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... + ")"; } } The Guest entity class will represents guests in the database. We also need to configure JPA by setting a META-INF/persistence.xml file: Open the [New Folder] dialog box, e.g. by right clicking the project
|
|
Eclipse/JPA Spring MVC Web Tutorial
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
|
|
Step 4: Run the Application
You can run the application now by right clicking the Main node (in the [Projects] window ... 1,000 objects. You can view the content of the database file by opening it in the ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .
|
|
JPA Web App Tutorial - Maven Project
The JPA Web Application tutorial provides step by step instructions on how to build a simple ... . Building a new application step by step is an effective way to learn - but if you prefer ... ) If Maven is installed - extract the zip and run the application from the command line by
|
|
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
|
|
ObjectDB 1.0 Manual
technology by Sun Microsystems. The main purpose of this guide is to familiarise you with ObjectDB ... class is and which types are supported by JDO. Chapter 4 - JDO Metadata Shows how to define JDO ... you may want to extend your knowledge of JDO by reading the JDO specification or a book on JDO
|