Internal Website Search

51-100 of 200 results

javax.transaction.Synchronization with Java SE 10.0.1

the Synchronization interface. Are you using -add-modules java .se. ee ? If yes, try removing it. See this thread on Stackoverflow. support Support I was not using -add-modules java .se. ee , but -add-modules java .corba ... Greetings, I am trying to get my app running on  Java 10 (up to now it runs on Java 8

Entity is not related to ObjectDB, but i get exception from ObjectDB

.as. ee .component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor. java :50 ... (InterceptorContext. java :288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final] at org.jboss.as. ee .component.TCCLInterceptor.processInvocation(TCCLInterceptor. java :45) [jboss-as- ee -7.1.1.Final.jar:7.1.1.Final] at org

Error reading UTF string

. ee .component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor. java :50 ... (InterceptorContext. java :288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final] at org.jboss.as. ee .component.TCCLInterceptor.processInvocation(TCCLInterceptor. java :45) [jboss-as- ee -7.1.1.Final.jar:7.1.1.Final] at org

Problem to use find method on an abstract Class: AbstractMethodError is thrown

.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor. java :50) [jboss-as- ee -7.1.1.Final.jar:7.1.1 ... (TCCLInterceptor. java :45) [jboss-as- ee -7.1.1.Final.jar:7.1.1.Final] at org.jboss.invocation.InterceptorContext ... .Final.jar:1.1.1.Final] at org.jboss.as. ee .component.ViewService$View.invoke(ViewService. java :165) [jboss

Comparison in JPQL and Criteria API

- JPQL / SQL Set 2 - Java / JDO Less Than Less Than or Equal To = Equal = == Not Equal != The two sets differ in the Equal and the Not Equal operators. JPQL follows the SQL notation, where Java uses ... to . When at least one of the two operands is NULL , == and != implement the ordinary Java logic, in

Strings in JPQL and Criteria Queries

', 'a') is evaluated to 0. Notice that positions are one-based (as in SQL) rather than zero-based (as in Java ... are one-based (as in SQL) rather than zero-based (as in Java ). If length is not specified (the third optional argument), the entire string suffix, starting at the specified position, is returned. Java

Logical Operators in JPQL and Criteria API

of logical operators, as shown in the following table: Set 1 - JPQL / SQL Set 2 - Java / JDO AND && OR || NOT ! JPQL follows the SQL notation, while Java uses its own notation (which is also in use by JDOQL ... the Java /JDO && operator as a synonym of AND as part of its JDO support. Binary OR (||) Operator

Numbers in JPQL and Criteria Queries

also supports the % (modulo) and the ~ (bitwise complement) operators that are supported in Java and JDO. JPA follows Java numeric promotion principles. For example, the resulting type ... another, similar to the modulo operator ( % ) in Java (which is also supported by ObjectDB as

Defining a JPA Entity Class

. A JPA entity class is a POJO (Plain Old Java Object) class, i.e. an ordinary Java class ... is an ordinary Java class. The only unique JPA addition is the @Entity annotation, which marks the class as ... to the NotSerializableException that Java throws (unrelated to JPA), when trying to serialize non-serializable objects

JPA Metamodel API

that Java reflection provides for general Java types. The Metamodel Interface The main interface of the JPA ... : // Get the underlying Java representation of the type: Class cls = type. getJavaType (); // Get one of BASIC ... details. For example: // Get the field (or property) name: String name = attr. getName (); // Get Java

javax.persistence.Persistence

schema generation to occur. The Persistence class is available in a Java EE container environment as ... . The Persistence class is used to obtain a PersistenceUtil instance in both Java EE and Java SE ... JPA Class Persistence java .lang.Object ∟  javax.persistence.Persistence Bootstrap class

JPA Entity Fields

to transient fields in Java that do not participate in serialization). Static and final entity fields ... either the Java transient modifier (which also affects serialization) or the JPA @Transient annotation ... a generic java .lang.Object , as long as the type of the actual value at runtime is persistable (or null

JPA Query Structure (JPQL / Criteria)

The syntax of the Java Persistence Query Language (JPQL) is very similar to the syntax of SQL ... is that SQL works with relational database tables, records and fields, whereas JPQL works with Java ... and easier to use in Java . JPQL Query Structure As with SQL, a JPQL SELECT query also consists 

JPA Exceptions

JPA exceptions are represented by a hierarchy of unchecked exceptions: java .lang.Object java .lang.Throwable java .lang.Exception java .lang.RuntimeException javax.persistence.PersistenceException javax.persistence.EntityExistsException javax.persistence.EntityNotFoundException javax.persistence

Chapter 4 - JPA Queries (JPQL / Criteria)

, but does not provide specific details on the JPQL query language itself: The Java Persistence Query ... clauses are explained: ObjectDB also supports the Java Data Objects (JDO) Query Language (JDOQL), which is more Java oriented and is based on the syntax of Java . JDOQL is not covered in this manual

Database Doctor

of the Operating System, Java or ObjectDB). Copying a database file while it is open and in use ... . It can be run from the command line: java -cp objectdb.jar com.objectdb.Doctor my.odb If objectdb.jar ... line arguments: java -cp objectdb.jar com.objectdb.Doctor old.odb new.odb The first argument ( old

ObjectDB 2.9 Developer's Guide

Welcome to ObjectDB for Java /JPA Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JPA ( Java Persistence API). The main purpose of this guide is to make ... , but a strong background and understanding of the Java language is essential. Further Reading

Is ObjectDB a NoSQL Database?

, using two standard Java query languages: JPQL ( Java Persistence Query Language) and JDOQL (JDO ... , but they are easier to use in object oriented languages such as Java . In addition, unlike most other NoSQL databases

Posting Sample Code

. Whenever possible: Use a single Java file with one main class + static inner classes for entity ... test; import java .util.*; import javax.persistence.*; public final class MyTestCase {    ... a persistence unit, An entity or IdClass class should implement the java .io.Serializable interface).

Paths and Types in JPQL and Criteria API

value. In Java , a NullPointerException is thrown on any attempt to access a field or a method via a null ... of a specified argument, similarly to java .lang.Object 's getClass method in Java . The following query

About Us

ObjectDB Software develops, markets and supports the ObjectDB Object-Oriented Database Management System (ODBMS). ObjectDB Software is the market leader in providing a very high performance persistence solution for Java , based on the Java Persistence API (JPA) and the Java Data Objects (JDO

Database Transaction Replayer

. It can be run from the command line: java -cp objectdb.jar com.objectdb.Replayer my.odb If objectdb.jar ... up to a specified transaction, e.g.: java -cp objectdb.jar com.objectdb.Replayer my.odb 1000 When a transaction

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables that represent iteration over objects in the database. A query identification variable is similar to a variable of a Java enhanced for loop in ... Reserved Identifiers The name of a JPQL query variable must a valid Java identifier

Date and Time in JPQL and Criteria Queries

- is evaluated to the current date (a java .sql.Date instance). CURRENT_TIME - is evaluated to the current time (a java .sql.Time instance). CURRENT_TIMESTAMP - is evaluated to the current timestamp, i.e

Is ObjectDB better than competing object databases?

support for the Java Persistence API (JPA). It also supports a more recent and advanced version of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA

Retrieving JPA Entity Objects

The Java Persistence API (JPA) provides various ways to retrieve objects from the database. The retrieval of objects does not require an active transaction because it does not change the content ... of JPA is JPQL ( Java Persistence Query Language). It enables retrieval of objects from the database by

Query Parameters in JPA

. setParameter ("date", new java .util.Date(), TemporalType . DATE ); Since TemporalType . Date represents a pure date, the time part of the newly constructed java .util.Date instance is discarded

Step 2: Define a JPA Entity Class

the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name ... code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity

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 ... objects in the database was created in the project (under Java Resources: src guest). Use copy and paste to replace the new source file content with the following code: package guest; import java .io

Step 2: Define a JPA Entity Class

the [New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive ... and paste to fill the new source file with the following content: package tutorial; import java .io

Step 2: Define a JPA Entity Class

the [New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window ... and paste to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence

Step 4: Add a Servlet Class

  New Other... Web Servlet and clicking  Next . The Java package name should be guest ... : package guest; import java .io.IOException; import java .util.List; import javax.servlet.ServletException

NetBeans/JPA Web Application Tutorial

This is the NetBeans version of the  JPA Web App tutorial. It demonstrates how to create and run a database driven Java web application in NetBeans - using Tomcat 6 Apache Tomcat ... you will need the following software: Java JDK (6.0 or above). NetBeans - Java or All bundle The last version

Step 3: Define a Spring DAO Component

) that we will define in this step as a Spring MVC component: Open the [New Java Class] dialog box by right ... Java Class... . Enter  GuestDao as the class name - use  exactly that case sensitive class ... replace the content of the new source file with the following code: package guest; import java .util.List

NetBeans/JPA Spring MVC Web Tutorial

This is the NetBeans version of the Spring MVC and JPA tutorial. It demonstrates how to create and run a full Java  Spring MVC (Model View Controller) web application in ... the following software: Java JDK 6.0 (or above). NetBeans ( Java or All bundle). The tutorial

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... of the new source file with the following code: package guest; import java .io.IOException; import java

JPA Web App Tutorial - Maven Project

The  JPA Web Application tutorial provides step by step instructions on how to build a simple Java /JPA database driven web application (for Tomcat / Jetty) in  Eclipse or  NetBeans ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty

Step 2: Define a JPA Entity Class

; import java .io.Serializable; import javax.persistence.*; @Entity public class Point implements ... (and its annotations) - the Point class is an ordinary Java class. The next step is adding to the project

Step 7: Run the Spring Web App

automatic enhancement (weaving) in Tomcat it has to be run with ObjectDB as a Java agent ... without specifying a Java agent. Since we are using ObjectDB in embedded mode - the database file

Step 2: Entity Class and Persistence Unit

to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence.GeneratedValue

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, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999

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 [Projects] window) and selecting New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class

Step 2: Entity Class and Persistence Unit

to replace the new source file content with the following code: package guest; import java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence

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 ... replace the content of the new source file with the following code: package guest; import java .util

Spring MVC JPA Tutorial - Maven Project

The  Spring MVC JPA tutorial provides step by step instructions on how to build a simple Java /JPA Spring MVC database driven web application in  Eclipse or  NetBeans . Building a new ... and install ObjectDB or a Java web server - Maven will download the ObjectDB jar and the Jetty

Step 4: Add a Servlet Class

... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java ... of the new source file with the following code: package guest; import java .io.IOException; import javax

[ODB1] Chapter 6 - Persistent Objects

types. Therefore, a JDO portable application should manage Object IDs using java .lang.Object references ... are retrieved one by one: Extent extent = pm.getExtent(Person.class, false); java .util.Iterator itr ... is similar to iteration over any ordinary Java collection using an Iterator instance. Each

ObjectDB 1.0 Manual

Welcome to the ObjectDB for Java /JDO Developer's Guide. Here you can learn how to develop database applications using ObjectDB and JDO ( Java Data Objects), the revolutionary database programming ... and understanding of the Java language is essential. Further Reading and Resources This guide focuses mainly

Which API should I use - JPA or JDO?

You can use ObjectDB with either the Java Persistence API (JPA) or the Java Data Objects (JDO) API. Both share similar architecture, design and abilities. When to prefer JPA JPA ... databases and it is probably the most popular Java API for object databases today.

[ODB1] Chapter 5 - JDO Connections

a PersistenceManagerFactory instance: import java .util.Properties; import javax.jdo.*; : : Properties properties = new ... .properties , it can be loaded by a class in the same directory using: import java .io; import java .util