ObjectDB Database Search

51-100 of 200 results

How to Use a SF with extended Persistence Context?

(InterceptorContext. java :288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final] at org.jboss.as. ee ... . 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.jboss

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

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

Index Definition

, long , float , double Equivalent wrapper classes from the java .lang package: Byte , Short , Character , Integer , Long , Float , Double java .math.BigInteger , java .math.BigDecimal java .lang.String java .util.Date , java .sql.Date , java .sql.Time , java .sql.Timestamp Any enum type A reference

JPA Attributes Annotations

to perform optimistic locking checks. Enum mapping Configure how Java enumerated types are persisted and used ... and calendar types to specific SQL temporal formats (modern java .time types are mapped automatically): Specifies the database SQL type for a persistent field or property of type java .util.Date or java .util

JPA Criteria Query Date/Time Extraction

(such as  java .time.LocalDate , and  java .sql.Date ), including YEAR , MONTH , DAY , DAY_OF_WEEK , and DAY_OF_YEAR . Defines the component types of Time values (such as java .time.LocalTime , and  java .sql.Time ), including HOUR , MINUTE , and SECOND . Defines component types applicable

Strings in JPQL and Criteria Queries

', 'a') is evaluated to 0 . Positions are one-based (as in SQL), not zero-based (as in Java ... zero-based (as in Java ). If you do not specify the optional length argument, the function returns the remainder of the string, starting from the specified position. Java string methods (ObjectDB

Logical Operators in JPQL and Criteria API

the following table: Set 1: JPQL / SQL Set 2: Java / JDO AND && OR || NOT ! JPQL uses SQL notation, while Java uses its own notation, which is also used by the JDO Query Language (JDOQL). ObjectDB ... . As part of its JDO support, ObjectDB also supports the Java /JDO && operator as a synonym

What are the system requirements for using ObjectDB?

ObjectDB requires Java 8 or later. As a pure Java application, ObjectDB should be able to run on any platform that supports the Java Standard Edition. Either the Java Development Kit (JDK) or the Java Runtime Environment (JRE) can be used. A version of ObjectDB for .NET is currently under development.

Numbers in JPQL and Criteria Queries

( % ) and bitwise complement ( ~ ) operators, which are supported in Java and JDO. JPA follows Java ... , similar to the Java modulo operator ( % ). ObjectDB also supports the % operator as an extension ... is of that same type. If the operands have different types, Java numeric promotion rules apply. For example

Defining a JPA Entity Class

class is a POJO (Plain Old Java Object), an ordinary Java class that is marked (annotated) to indicate ... class is an ordinary Java class. The only JPA-specific addition is the @Entity annotation ... to the NotSerializableException that Java throws when you try to serialize a non-serializable object. However, all JPA

JPA Metamodel API

about managed classes, persistent fields, and properties, similar to how Java reflection provides this capability for general Java types. The Metamodel interface The main interface of the JPA Metamodel ... is a thin wrapper for Class and provides only two methods: // Get the underlying Java representation of the type

Comparison in JPQL and Criteria API

/SQL Set 2: Java /JDO Less Than Less Than or Equal To = Equal To = == Not Equal To != The main ... . != ) operators. JPQL follows SQL notation, while Java uses its own notation, which is also used by JDOQL ... standard Java logic. For example, null == null evaluates to true . All other operators

JPA Metamodel Attributes

: COLLECTION , SET , LIST , or MAP . Represents an attribute typed as a generic java .util.Collection . Represents an attribute typed as a java .util.Set , implying unique elements without a specific order. Represents an attribute typed as a java .util.List , supporting ordered collections and index-based

JPA Criteria FROM and JOIN

to an association typed as a java .util.Collection . Represents a join to an association typed as a java .util.Set . Represents a join to an association typed as a java .util.List . It provides support for list indices. Represents a join to an association typed as a java .util.Map . It provides access

jakarta.persistence.EntityNotFoundException

Jakarta Persistence (JPA) Class jakarta.persistence.EntityNotFoundException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... ) EntityManager.refresh(Object, java .util.Map) EntityManager.refresh(Object, LockModeType, java .util.Map

jakarta.persistence.OptimisticLockException

Jakarta Persistence (JPA) Class jakarta.persistence.OptimisticLockException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... .find(Class, Object, LockModeType, java .util.Map) EntityManager.lock(Object, LockModeType) EntityManager

jakarta.persistence.PessimisticLockException

Jakarta Persistence (JPA) Class jakarta.persistence.PessimisticLockException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... .. Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java .lang.Throwable java .lang

jakarta.persistence.LockTimeoutException

Jakarta Persistence (JPA) Class jakarta.persistence.LockTimeoutException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... . Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java .lang.Throwable java

jakarta.persistence.EntityExistsException

Jakarta Persistence (JPA) Class jakarta.persistence.EntityExistsException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... inherited from java .lang.Throwable java .lang.Throwable/addSuppressed(Throwable), java .lang.Throwable

jakarta.persistence.QueryTimeoutException

Jakarta Persistence (JPA) Class jakarta.persistence.QueryTimeoutException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... .. Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java .lang.Throwable java .lang

jakarta.persistence.RollbackException

Jakarta Persistence (JPA) Class jakarta.persistence.RollbackException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... Additional JDK methods inherited from java .lang.Throwable java .lang.Throwable/addSuppressed

jakarta.persistence.TemporalType

Jakarta Persistence (JPA) Enum jakarta.persistence.TemporalType java .lang.Object ∟ java .lang.Enum ... Type used to indicate a specific mapping of java .util.Date or java .util.Calendar . Deprecated: Newly-written code should use the date/time types defined in java .time . Since: Jakarta Persistence (JPA) 1

jakarta.persistence.TransactionRequiredException

Jakarta Persistence (JPA) Class jakarta.persistence.TransactionRequiredException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... . Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java .lang.Throwable java .lang

jakarta.persistence.NonUniqueResultException

Jakarta Persistence (JPA) Class jakarta.persistence.NonUniqueResultException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... . Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java .lang.Throwable java .lang

jakarta.persistence.NoResultException

Jakarta Persistence (JPA) Class jakarta.persistence.NoResultException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... inherited from java .lang.Throwable java .lang.Throwable/addSuppressed(Throwable), java .lang.Throwable

jakarta.persistence.PersistenceException

Jakarta Persistence (JPA) Class jakarta.persistence.PersistenceException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ java .lang.RuntimeException ∟ jakarta.persistence ... . Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java .lang.Throwable java .lang

jakarta.persistence.SchemaValidationException

Jakarta Persistence (JPA) Class jakarta.persistence.SchemaValidationException java .lang.Object ∟ java .lang.Throwable ∟ java .lang.Exception ∟ jakarta.persistence.SchemaValidationException Implemented ... (JPA) 1.0 Additional JDK methods inherited from java .lang.Throwable java .lang.Throwable

JPA Entity Fields

. This behavior is similar to transient fields in Java , which don't participate in serialization. Static ... either the Java transient modifier (which also affects serialization) or the JPA @Transient ... declared type, including a generic java .lang.Object , as long as the actual runtime value

Date and Time in JPQL and Criteria Queries

when the query is executed: CURRENT_DATE : Returns the current date as a java .sql.Date instance. CURRENT_TIME : Returns the current time as a java .sql.Time instance. CURRENT_TIMESTAMP : Returns the current timestamp (date and time) as a java .sql.Timestamp instance. Extracting date parts JPA does not define

JPA Query Structure (JPQL / Criteria)

operates on Java classes and objects. For example, a JPQL query can retrieve entities, unlike SQL ... and easier to use in Java applications. JPQL Query Structure Like SQL, a JPQL SELECT query consists ... ). The exceptions, where JPQL is case-sensitive, include Java source elements such as the names of entity classes

Database Doctor

(for example, a bug in the operating system, Java , or ObjectDB). Copying a database file ... Doctor tool is included in the objectdb.jar file. You can run the tool from the command line: $ java -cp ... , specify two command-line arguments: $ java -cp objectdb.jar com.objectdb.Doctor old.odb new.odb

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 ... this guide, but a strong background and understanding of the Java language is essential

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 jakarta.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

a null value. In Java , a NullPointerException is thrown on any attempt to access a field or a method ... to the getClass method of java .lang.Object in Java . The following query returns the number of all the entities

Step 2: Entity Class and Persistence Unit

, enter src/main/ java as Folder Name and click Finish . Open the [New Java Class] dialog box, e.g. by ... the database was created in the project (under Java Resources: src/main/ java guest). Use  copy ... java .io.Serializable; import java .sql.Date; import javax.persistence.Entity; import javax.persistence

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 ... the following software: Java JDK (6.0 or above). NetBeans - Java or All bundle The last version of ObjectDB

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 ... software: Java JDK 6.0 (or above). NetBeans ( Java or All bundle). The tutorial was written

[ODB1] Chapter 6 - Persistent Objects

. Therefore, a JDO portable application should manage Object IDs using java .lang.Object references. You can assume ... one: Extent extent = pm.getExtent(Person.class, false); java .util.Iterator itr = extent.iterator ... over any ordinary Java collection using an Iterator instance. Each call to next() retrieves

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.