ObjectDB Database Search

101-150 of 200 results

Extended HashMap as Embeddable class

Hi, Should it be possible to create an Embeddable class that extends HashMap (or Set etc.)? I can user HashMaps  as parameter type in entities, but when I extend it and annotate it with @Embeddable annotation - I get an error. @Embeddable public class A extends HashMap { (...) }    

Using of ConcurrentHashMap as attribute

holding a  ConcurrentHashMap instance but it will be loaded as java.util.HashMap when the entity is retrieved from the database. support Support

InternalException - reporting as requested

InternalException - reporting as requested

Glassfish 4 AbstractMethodError: com.objectdb.jpa.EMF.createEntityManager

the samples as NetBeans projects, so that you could check easier. 1 for GF3 (6) and 1 for GF4 (7 ... .lang.reflect.Method.invoke(Method.java:601) at org. jboss .weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:396) at org. jboss .weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke

Deploy ObjectDB in WildFly 10

; [org. jboss . as .jpa] WFLYJPA0002: Read persistence.xml for TestPU 2017-10-23 09:23:31,722 ERROR [org ... "omd-in-memory-db.jar"         at org. jboss . as .server.deployment ... ' not found         at org. jboss . as .jpa.processor

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

Detached Entity Objects

serialized object) is constructed as a detached entity object since is not associated with any ... instance, which is then automatically detached as well. Cascading may continue recursively when applicable ... to the referenced Address instance, which is then automatically merged as well. Cascading may continue recursively

JPA Named Queries

carefully to avoid collision (e.g. by using the unique entity name as a prefix). It makes sense to add ... to the same entity class requires wrapping them in a @NamedQueries annotation, as follows: @Entity ... still might fail if that named query is defined on a class that is still unknown to ObjectDB. As

Running JPA Queries

the database. The query should be ran using the getResultList method, as we expect to receive multiple ... and the warning is avoided. The query result collection functions as any other ordinary Java collection ... provides an additional method, getSingleResult , as a more convenient method when exactly one result

JPA Metamodel API

types  (which are referred to as managed types) in the persistent object model ... user defined embeddable classes. IdentifiableType is as a super interface of: MappedSuperclassType ... to as attributes). For example: // Get all the attributes - including inherited: Set attributes1

BIRT/ODA ObjectDB Driver

The ObjectDB BIRT/ODA driver is an extension of the open source Business Intelligence and Reporting Tools (BIRT) that adds support of ObjectDB as a data source and JPQL as a data set query ... with BIRT and JPA tutorial. Driver Installation The driver is available as an Eclipse for Java EE

Posting Sample Code

( no persistence unit ). Keep the test as simple as possible - remove unnecessary code (but keep it complete and runnable). You may use the following example as an initial template for your test case: package

Comparison in JPQL and Criteria API

ObjectDB supports two sets of comparison operators, as shown in the following table:   Set 1 ... which NULL represents an unknown value and expressions that include an unknown value are evaluated as ... comparison of any two values that belong to the same group as detailed above. Therefore, for example

UPDATE SET Queries in JPA/JPQL

Existing entity objects can be updated, as  explained in chapter 2 , by: Retrieving ... . Therefore, it is a good practice to use a separate EntityManager for UPDATE queries. As with any ... Country AS c SET c.population = c.population * 11 / 10 The UPDATE clause defines exactly one range

Chapter 4 - JPA Queries (JPQL / Criteria)

The JPA Query Language (JPQL) can be considered as an object oriented version of SQL. Users familiar with SQL should find JPQL very easy to learn and use. This chapter explains how to use JPQL as well as how to use the JPA Criteria API, which provides an alternative way for building queries in JPA

Server Configuration

when connecting to the database ( as explained in the JPA Overview section in chapter 3). The max attribute ... of ObjectDB databases that the server manages. The $objectdb prefix, if specified ( as demonstrated

ObjectDB License Agreement [ver. 2.0.4]

and only as part of the Customer's product ("The Product"). The Product is not a Database Management ... and provisions to the entire Product, including the embedded Software. 5. The Software is provided " AS

Is ObjectDB scalable? What are its limitations?

ObjectDB is highly scalable and can manage efficiently databases in a wide range of sizes, from a few Kilobytes to hundreds of Gigabytes and even Terabytes. ObjectDB can be used in small embedded single user applications as well as in heavy loaded multi threaded multi user applications. ObjectDB

Database Doctor

. Modifying the database file externally not through ObjectDB (e.g. by malicious software such as ... to the database file (e.g. my.odb as shown above). Diagnosis results are printed to the standard output

Is ObjectDB better than Object Relational Mapping (ORM)?

As noted above, using ObjectDB instead of a relational database and ORM combination is easier and leads to better performance. ORM tools, however, are very useful where the use of a relational database is mandatory (e.g. as a result of a customer request or when a new application

What is ObjectDB?

or convert objects to records/records to objects using SQL or ORM, as opposed to when using relational database systems (RDBMS), such as Oracle, DB2, SQL Server or MySQL.

JPA Annotations for Access Modes

Persistence fields can either be accessed by JPA directly ( as fields) or indirectly ( as properties and get/set methods). JPA 2 provides an annotation and an enum for setting the access mode: More details are provided in chapter 2 of the ObjectDB manual.

Can I use ObjectDB with languages other than Java?

ObjectDB can be used by Java Virtual Machine (JVM) languages, such as Java, Kotlin, Groovy and Scala. It can also be used with other languages, such as Python, JavaScript, Ruby and PHP, but currently only with their JVM implementations (e.g. Jython for Python, GraalVM for JavaScript

JPA Annotations for Classes

policy ( as explained in chapter 3 ): Another JPA class annotation defines an ID class: ID classes are useful in representing composite primary keys as explained in the Primary Key section of the ObjectDB manual.

About Us

fortune 500 companies as well as smaller companies and start-ups, governments and defence forces

Enhanced classes problem

) at com.objectdb.o.MST.aT(MST.java:508) at com.objectdb.o.MST. aS (MST.java:434) at com.objectdb.o.MST ... , which is supported only when classes are enhanced. As a workaround, please try to disable this lazy ... : System.setProperty("objectdb.temp.no-lazy-o2o-inverse", "true"); or as a JVM parameter: java -Dobjectdb

Step 2: Entity Class and Persistence Unit

Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name ... with the following new content: com.objectdb.jpa.Provider Now ObjectDB should be used as a JPA provider

Step 5: Design a BIRT Report Chart

. In the [Select Chart Type] tab select Tube as the chart type and click Next . In the [Select Data] tab - enter row["y"] as the Y series and  row["x"] as the X series, (use Ctrl + Space in

Step 2: Entity Class and Persistence Unit

  Next ). Enter Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Next to create the new ... as a JPA provider with the specified database url. The next step is adding a Spring DAO Component class that will manage Guest entity objects.

Step 4: Create an ObjectDB Data Set

Queries against the database are represented in BIRT as data sets. To create the data set: Open the [New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window ... value in a specified range: SELECT p.x as x, p.y as y FROM Point p WHERE p.x BETWEEN :low AND :high Use

Spring MVC and JPA Tutorial

that has signed the guestbook is represented as Guest JPA entity object, and all Guest entity objects ... addition, the demonstrated application is available as a Maven project:

Report Generation with BIRT and JPA

This tutorial demonstrates how to create reports based on data in an ObjectDB database using the popular open source Business Intelligence and Reporting Tools (BIRT). In order to keep things as simple as possible - we will use the basic  points.odb ObjectDB database file from the Getting

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package name (case sensitive). Enter Point as the class name (case sensitive). Click Finish to create

Step 3: Add a Context Listener Class

as the class name - use exactly that case sensitive class name. Click Next and then Select ... it as an application scope attribute in the servlet context - when the web application starts

Step 1: Create a Maven Web Project

; maven-archetype-webapp as a filter, select  maven-archetype-webapp in the artifact list and click ... the project node and checking that the  Run As Run on Server command is available

Step 1: Create a Java EE 6 Web Project

a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button

Java EE 6 JPA Tutorial - Eclipse Project

the  guestbook-jee6 directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select  Run As Run

Spring MVC JPA Tutorial - Eclipse Project

-spring directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select  Run As Run On Server

Step 2: Define a JPA Entity Class

) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package name. Enter Guest as the class name - use exactly that case sensitive class name. Click Finish

JPA Web App Tutorial - Eclipse Project

; guestbook-web directory as Root Directory and press  ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select Run As Run On Server

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... is adding a JSP page that will serve as the application view and will produce the guestbook output.

Step 2: Define a JPA Entity Class

) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Finish

Step 1: Create a Web Project

.g. Guestbook ). Select Apache Tomcat v6.0 as the Target runtime. Note: You may have to add Tomcat 6 as a new server by clicking the New Runtime... button . Follow the instructions and specify the path

Step 3: Add a Context Listener Class

Other... Select Web Web Application Listener and click Next . Enter GuestListener as the class name ... and creates an EntityManagerFactory instance and stores it as an application scope attribute in

Getting Started with JPA - Eclipse Project

directory as Root Directory and press ENTER . Select the project and click  Finish . Run the project in Eclipse: Right click the project node and select Run As Java Application . Select Main - point and click OK .

Step 4: Add a Servlet Class

GuestServlet as the class name - use exactly that case sensitive class name. Click Finish to create ... annotation). The next step is adding a JSP page that will serve as the application view and will produce the guestbook output.

Step 1: Create a Web Project

Name (e.g. Guestbook ) and click Next . Select Apache Tomcat 6 as the Server. Note: You may have to add Tomcat 6 as a new server by clicking the Add... button . Follow the instructions and specify

Step 7: Run the Spring Web App

At this stage your project should have the following structure: Use copy and paste to replace the content of the index.jsp file (which serves as the default front page) with the following redirection to the controller path: Assuming that Tomcat 6.0 is installed as a server in your NetBeans

JDO Predefined ID Classes

a unique representation of a persistent object. The following classes serve as predefined ID classes ... but should not be used as the type of a primary key field in a persistence capable class. For example ... instances of MyClass ) can be represented uniquely by StringIdentity , as a combination of a class and a string value.

Which API should I use - JPA or JDO?

is more commonly used. Therefore, it might be the first choice for most new applications. You can use JPA as the primary API, and if necessary, switch to JDO as a secondary API for special additional features