ObjectDB Database Search

151-200 of 200 results

com.objectdb.o.InternalException: java.lang.NoClassDefFoundError: java/sql/Date

). Please report this error on http://www.objectdb.com/issue/new com.objectdb.o.InternalException: java .lang.NoClassDefFoundError: java /sql/Date java .lang.NoClassDefFoundError: java /sql/Date at objectdb/com.objectdb.o.VUT. (VUT. java :68) at objectdb/com.objectdb.o.RAT.l(RAT. java :106) at objectdb/com.objectdb.o.RTT

java.lang.NoClassDefFoundError: java/time/LocalDate

thread "main" [ObjectDB 2.8.6] Unexpected exception (Error 990) Generated by Java HotSpot(TM) Client ... .objectdb.o.InternalException: java .lang.NoClassDefFoundError: java /time/LocalDate java .lang.NoClassDefFoundError: java /time/LocalDate at com.objectdb.o.VUT. (VUT. java :71) at com.objectdb.o.RAT.l(RAT

Guessbook tutorial: Java EE 6 JPA Tutorial - Maven Project

.EJBException at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer. java :5215) at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer. java :5113) at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer. java :4901) at com.sun.ejb.containers.BaseContainer

Database Management Settings

. Activation codes are generated by running the Activator utility from the command line: $ java -cp objectdb

SELECT clause (JPQL / Criteria API)

performance and can sometimes reduce the amount of Java code needed. Note that query results

Storing JPA Entities

. getTransaction (). commit (); The Employee instance is constructed as an ordinary Java object

JPA Metamodel Types

Java type known to the persistence provider. Represents basic foundation types (primitives, wrappers

JPA Queries

The Criteria API provides a factory for defining queries programmatically using Java objects

JPA Named Queries

A named query is a statically defined query with a predefined, unchangeable query string. Using named queries instead of dynamic queries can improve code organization by separating JPQL query strings from Java code. This practice also enforces the use of query parameters instead of embedding

DELETE Queries in JPA/JPQL

+ an optional variable ObjectDB supports using the java .lang.Object class in queries as an extension

SQL Queries Annotations

Jakarta Persistence (JPA) provides a set of annotations to define and map native SQL queries when the standard Java Persistence Query Language (JPQL) is insufficient. While ObjectDB focuses on JPQL and ignores these annotations, they remain essential for applications interacting with relational

Where can I learn how to use ObjectDB?

The best source for learning ObjectDB is the ObjectDB Manual , which contains all the necessary information for using ObjectDB. The only required background is a good understanding of the Java language. Reading the manual and getting started with ObjectDB could be easier for developers with prior

Is ObjectDB better than Object Relational Mapping (ORM)?

is developed for an existing old relational database). By using the Java Persistence API (JPA

JPA Query API

Criteria API provides an alternative way to build dynamic queries. It uses Java objects that represent

JPA Metamodel and Graphs

to retrieve entity and attribute information by class or name, similar to the reflection API in Java

Database Schema Evolution

other conversion that is a valid casting operation in Java . Renaming (package, class, and Field

JPA Connections and Transactions

Working with the Java Persistence API (JPA) consists of using the following interfaces: Overview A connection to a database is represented by an EntityManager instance, which also provides methods for performing database operations. Many applications require multiple database connections

Running JPA Queries

like any other Java collection. For example, you can iterate over a result collection

BIRT/ODA ObjectDB Driver

and JPA tutorial. Driver installation The driver is available as an Eclipse for Java EE Developers

JPA Relationships Annotations

Relationships define associations between entities. They are represented In Java code by attributes (persistent fields or properties) in persistent classes that hold a reference or a collection of references to other entities. Jakarta Persistence (JPA) provides annotations to configure

JPA ORM Mapping Annotations

java .util.Map when the type cannot be determined via generics. Specifies the mapping for the key column

JPA Criteria API Queries

Java objects that represent query elements. A major advantage of the Criteria API is that it enables

JPA Persistence Unit

;file to define a persistence unit. You can now define a persistence unit entirely in Java code

Database Explorer

line as follows: $ java -jar explorer.jar If explorer.jar is not in the current directory

jakarta.persistence.Id

to which the Id annotation is applied should have one of the following types: any Java primitive type; any primitive wrapper type; String ; java .util.UUID ; java .util.Date ; java .sql.Date ; java .math.BigDecimal ; java .math.BigInteger . The mapped column for the primary key of the entity is assumed

jakarta.persistence.MapKeyTemporal

of type java .util.Date and java .util.Calendar . It may only be specified for map keys of these types. The MapKeyTemporal annotation can be applied to an element collection or relationship of type java .util ... the date/time types defined in java .time . Since: Jakarta Persistence (JPA) 2.0 Annotation Elements

jakarta.persistence.metamodel.MapAttribute

of the type MapAttribute represent persistent java .util.Map -valued attributes. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class getBindableJavaType () Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE , the Java element type

jakarta.persistence.Temporal

of type java .util.Date and java .util.Calendar . It may only be specified for fields or properties ... is of such a temporal type. Example: @Temporal(DATE) protected java .util.Date endDate; Deprecated: Newly-written code should use the date/time types defined in java .time . Since: Jakarta Persistence (JPA) 1.0 The JPA

jakarta.persistence.Embeddable

must: be a non- abstract , non- final top-level class or static inner class, or a Java record type ... . The Transient annotation or the Java transient keyword must be used to explicitly declare any field ... EmploymentPeriod { @Temporal(DATE) java .util.Date startDate; @Temporal(DATE) java .util.Date endDate

jakarta.persistence.metamodel.ListAttribute

java .util.List -valued attributes. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class getBindableJavaType () Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR

jakarta.persistence.metamodel.CollectionAttribute

CollectionAttribute represent persistent java .util.Collection -valued attributes. Since: Jakarta Persistence (JPA) 2.0 Public Instance Methods Class getBindableJavaType () Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE , the Java element type is returned

jakarta.persistence.metamodel.SetAttribute

: PluralAttribute , Attribute , Bindable Instances of the type SetAttribute represent persistent java ... getBindableJavaType () Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR

com.objectdb.o.InternalException: java.lang.NoClassDefFoundError: java/sql/Date

: java .lang.NoClassDefFoundError: java /sql/Date java .lang.NoClassDefFoundError: java /sql/Date at objectdb/com.objectdb.o.VUT. (VUT. java :68) at objectdb/com.objectdb.o.RAT.l(RAT. java :106) at objectdb/com.objectdb.o.RTT.g(RTT. java :136) at objectdb/com.objectdb.o.TSK.b(TSK. java :146) at objectdb/com

jakarta.persistence.metamodel.SingularAttribute

getBindableJavaType () Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE , the Java type of the represented entity or attribute is returned. Inherited from

jakarta.persistence.metamodel.PluralAttribute

) 2.0 Public Instance Methods Class getBindableJavaType () Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE , the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE , the Java type of the represented entity or

jakarta.persistence.Version

: int , Integer , short , Short , long , Long , java .sql.Timestamp , java .time.Instant , java .time ... This is a marker annotation with no members/elements. Additional JDK methods inherited from java .lang.annotation.Annotation java .lang.annotation.Annotation/annotationType(), java .lang.annotation.Annotation

jakarta.persistence.OneToMany

field or property of the entity that is the owner of the relationship. When the collection is a java ... . Optional only if the collection property is defined using Java generics. Must be specified ... collection is a java .util.Map , the cascade element applies to the map value. Default

jakarta.persistence.IdClass

must: be a non- abstract regular Java class, or a Java record type, have a public or protected constructor ... from java .lang.annotation.Annotation java .lang.annotation.Annotation/annotationType(), java .lang.annotation.Annotation/equals(Object), java .lang.annotation.Annotation/hashCode(), java .lang.annotation.Annotation/toString()

jakarta.persistence.MapKeyClass

: Annotation Target: Method, Field Specifies the type of the map key for associations of type java ... using Java generics, the MapKeyClass annotation and associated type need not be specified ... . Since: Jakarta Persistence (JPA) 1.0 Additional JDK methods inherited from java .lang.annotation.Annotation

Spring MVC and JPA Tutorial

This tutorial demonstrates how to create and run a full Java Spring MVC (Model View Controller) web application using Tomcat (or GlassFish), JPA, ObjectDB and Maven. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors

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 [Package Explorer] window) and selecting  New Class . The package name should be  guest . Enter  GuestController as

Step 3: Add a Context Listener Class

Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as

Step 1: Create a Maven Web Project

.2 enhance process-classes java com.objectdb.Enhancer guest.Guest org.mortbay.jetty maven-jetty

Step 3: Add a Main Class

tutorial; import javax.persistence.*; import java .util.*; public class Main { public static void main

Step 3: Add a Main Class

.persistence.*; import java .util.*; public class Main { public static void main(String[] args) { // Open

JPA Web Application Tutorial

This tutorial demonstrates how to create and run a database driven Java web application using Tomcat 6, ObjectDB and JPA. The demo web 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

Step 3: Add a Context Listener Class

exactly that case sensitive class name. The Java package name should be guest. Click Finish

Getting Started with JPA - Eclipse Project

Eclipse: Right click the project node and select Run As Java Application . Select Main - point and click OK .

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 Name (e.g. Guestbook ) and click Next . Select Apache Tomcat 6 as the Server. Note

Step 7: Run the Spring Web App

enabled without specifying a Java agent. This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .