ObjectDB Database Search

1-50 of 200 results

JPA Entity Fields

either the Java transient modifier (which also affects serialization) or the JPA @Transient ... of entity types. @Basic : For any other persistable type. In JPA , only @Basic is optional ... of these annotations. They are useful only for classes that are also used with an ORM JPA provider

JPA Persistable Types

supports all JPA persistable types, which include: User-defined classes: Entity classes, mapped ... .Entity; @Entity public class MyEntity { } Entity class requirements A portable JPA entity class ... . Mapped superclasses In JPA , classes that are declared as mapped superclasses have some of the features

Setting and Tuning of JPA Queries

. However, these changes are not visible to users of other EntityManager instances. JPA implementations ... must be flushed to the database to be visible to the query. The flush policy in JPA is represented by ... and on commit or flush . COMMIT - Flushes changes only on an explicit commit or flush . In most JPA

JPA Criteria Query Expressions

Jakarta Persistence ( JPA ) Criteria API uses a hierarchy of interfaces to model query conditions ... .SimpleCase Queries may include many different types of expressions and JPA implementations may implement tens and hundreds of classes to manage these different expression types. JPA simplifies

JPA Lifecycle Events

Callback methods are user-defined methods that are attached to entity lifecycle events. JPA ... and have a public, no-argument constructor to allow JPA to instantiate it. To attach a listener to an entity ... methods are defined for a single lifecycle event, JPA invokes them in the following order: External

Storing JPA Entities

Using Jakarta Persistence ( JPA ) You can store new entities in the database either explicitly by calling the persist method or implicitly through a cascade operation. Explicit persist The following ... . You can do this either by setting the ObjectDB configuration or, in a JPA -portable way, by specifying the cascade-persist

JPA Named Queries Annotations

Jakarta Persistence ( JPA ) provides annotations to define static, reusable queries at the class level, separating query logic from business code. Query definitions Declare named queries using ... , cache usage, or fetch graphs. For details and examples, see the JPA Named Queries section

JPA Metamodel Attributes

The Jakarta Persistence ( JPA ) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the attributes of managed persistent types (entities, embeddable and superclasses). Metamodel Attributes Hierarchy in Jakarta Persistence ( JPA ) 3. Base attribute definitions

JPA Metamodel Types

The Jakarta Persistence ( JPA ) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the persistent types within a domain model. Metamodel Types Hierarchy in Jakarta Persistence ( JPA ) 3.2 Base type definitions The core abstractions of model types

Detached JPA Entities

Detached entities are objects in a special state where they are not managed by an EntityManager but still represent objects in the database. Compared to managed entities, detached objects have limited functionality: Many JPA methods, for example, lock , do not accept detached objects. Retrieval by

JPA Attributes Annotations

Jakarta Persistence ( JPA ) annotations define how entity attributes (fields and properties) are managed. These annotations control data persistence behavior, including fetching strategies, relationship types, and data storage formats. General field mapping Configure standard state mapping behavior

JPA Query Expressions (JPQL / Criteria)

[OF] String operator : [NOT] LIKE Logical operators : AND , OR , and NOT JPA queries also support predefined

Eclipse/JPA Spring MVC Web Tutorial

This is the Eclipse version of the  Spring MVC and JPA tutorial. It demonstrates  ... Eclipse - using ObjectDB, JPA , Tomcat (or GlassFish) and Maven. The demo web application manages ... that have already signed are listed below the form: Persistence is managed by JPA . Every visitor

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 ... , you may download and run the result application as a Maven project: JPA Web App - Maven Project (6KB

Spring MVC and JPA Tutorial

) web application using Tomcat (or GlassFish), JPA , ObjectDB and Maven. The demo web application manages ... that have already signed are listed below the form: Persistence is managed by JPA . Every visitor that has signed the guestbook is represented as Guest JPA entity, and all Guest entities are stored in

Getting Started with JPA and Eclipse

This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields: x and y

NetBeans/JPA Web Application Tutorial

This is the NetBeans version of the  JPA Web App tutorial. It demonstrates how  ... Server 6.0 ( some modifications are needed for Tomcat 7.0 ), ObjectDB and JPA . The demo web ... form. The visitors that have already signed are listed below the form: Persistence is managed by JPA

Spring MVC JPA Tutorial - IntelliJ Project

To open and run the  Spring MVC JPA tutorial project in Download and extract the project zip file: Spring MVC JPA - Maven Project (8KB) Open the project in IntelliJ IDEA: Select  File Open Project... . Select the  guestbook-spring directory and click  OK . Define

JPA Web App Tutorial - NetBeans Project

To open and run the  JPA Web Application tutorial project in NetBeans: Download and extract the project zip file: JPA Web App - Maven Project (6KB) Open the Maven project in NetBeans: Select  File Open Project... . Select the  guestbook-web directory and click  Open

Java EE JPA Tutorial - Maven Project

The  Java EE Web Application tutorial provides step by step instructions on how to build a simple Java/ JPA database driven web application (for GlassFish 3/ JBoss 6) in  Eclipse or  ... ;if you prefer, you may download and run the result application as a Maven project: Java EE  JPA Web

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 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Open 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

Report Generation with BIRT and JPA

Demonstrates how to use ObjectDB as a data source of the Business Intelligence and Reporting Tools (BIRT), open source report generator.

Spring Data JPA - PersistenceException thrown

is initializing Spring JPA repositories with Hibernate EntityManagers, the application throws ... ) at com.objectdb.o.SCM. (SCM.java:110) at com.objectdb.o.OMF.ap(OMF.java:834) at com.objectdb. jpa ... (Method.java:497) at org.springframework.orm. jpa .AbstractEntityManagerFactoryBean.invokeProxyMethod

TemporalType injection with Calendar using JPA

I have ObjectDB   JPA  comsummed by a RESTful web service deployed on Tomcat. I am using ... . jpa .entity.TimePeriod[ " + periodType + ", " + beginTime + ", " + endTime + " ]"; }   ... .foo.bar. jpa .enity.TimePeriod[ day, java.util.GregorianCalendar[time=1306779283031,areFieldsSet=true

openejb jpa jaas module

hello , i've finished jpa jaas module. Here it is : package com.bayner.auth; import com.bayner. jpa .Principals; import com.bayner. jpa .UserInfo; import com.bayner. jpa .UserPrincipal; import javax ... ); ((PasswordCallback) callbacks[1]).clearPassword(); } } package com.bayner. jpa ; import javax.persistence

ObjectDB and JPA

Hello !! I am new in JPA / ObjectDB development and I have many questions:   1. General questions 1.1. If I understood correctly, ObjectDB is an implementation of JPA standard (currently 2.0 ... supports JPA 2.0 (except several unimplemented features - see the issue tracking ). Hibernate supports

Error with org.springframework.data.jpa.domain.AbstractPersistable

I am working on a Spring Boot application. I want to integrate ObjectDB with Spring Data JPA . I ... org.springframework.data. jpa .domain.AbstractPersistable.id at com.objectdb.o.MSG.d(MSG.java:62 ... .ao(TYM.java:788) at com.objectdb. jpa .MetamodelImpl.obtainType(MetamodelImpl.java:269) at com

Guessbook tutorial: Java EE 6 JPA Tutorial - Maven Project

) at com.objectdb.o.OST.onObjectDBError(OST.java:589) at com.objectdb. jpa .EMF.createEntityManager ... .ah(OMF.java:661) at com.objectdb. jpa .EMF.createEntityManager(EMF.java:180) ... 55 more WARNING ... .f(ERR.java:59) at com.objectdb.o.OST.onObjectDBError(OST.java:589) at com.objectdb. jpa .EMF

Problem on JPA Merge Entity.

- is it an ObjectDB merge issue or Spring / JPA transaction management issue? Maybe it is a missing ... ;   support Support Hi, I think that it is an ObjectDb problem. The same code with Spring, JPA ... ; This a little webapp (using Spring/Spring MVC, ObjectDb, JPA ) project under Eclipse. I upload

enumeration table? how to on pure jpa?

test pictureCount 588 ...   Is there any JPA annotation that can handle all those easiest way ... there is no field value on Column annotation but i need solution like that on pure JPA if possible. Fastest clear ... You may use your code at #1 with the query at #2. Since you asked for a pure JPA solution - adding an extension to ObjectDB will not help. support Support

JPA inheritance issue with ObjectDB - Field not found in type error

I'm using ObjectDB as my JPA provider, and I'm facing an issue with inheritance. My classes are as follows: @Entity public class Item implements Serializable, Comparable { boolean retired ... , for example, maybe it affected enhancement by other JPA providers that you use and the class files

Error in reading Enum in JPA - Failed to read using reflection

I have created a very simple Entity User which has an enum Status (INACTIVE, ACTIVE). When an entity User is created, everything looks OK and I have seen on explorer that User is created as expected with valid values of Status. This is all done with JPA /EJBs. However, at the time of reading

How to Remove records from many to many relationship tables in JPA

How to Remove records from many to many relationship tables in JPA

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 ... relational database by using an ORM  JPA provider such as Hibernate, EclipseLink or Open JPA

SELECT clause (JPQL / Criteria API)

. getResultList (); Because the results are managed entities they have all the support that JPA provides ... ]); } As an alternative to representing compound results with Object arrays, JPA supports using custom result classes and result constructor expressions. Result classes (constructor expressions) JPA

jakarta.persistence.EntityManager

Jakarta Persistence ( JPA ) Interface jakarta.persistence.EntityManager Super Interfaces ... StoredProcedureQuery EntityManagerFactory Since: Jakarta Persistence ( JPA ) 1.0 The Database Connection using JPA ... Exception thrown by ConnectionFunction.apply , if any. Since: Jakarta Persistence ( JPA ) 3.2 void clear

Date and Time in JPQL and Criteria Queries

JPA defines special JPQL expressions that return the date and time from the database server ... timestamp (date and time) as a java.sql.Timestamp instance. Extracting date parts JPA does not define standard methods for extracting date and time parts, but some JPA implementations, including ObjectDB

jakarta.persistence.EntityGraph

Jakarta Persistence ( JPA ) Interface jakarta.persistence.EntityGraph Type Parameters: - The type ... Persistence ( JPA ) 2.1 Public Instance Methods AttributeNode addAttributeNode ( String attributeName ... .. Since: Jakarta Persistence ( JPA ) 3.2 AttributeNode addAttributeNode ( Attribute attribute ) Get an existing

NPE at com.objectdb.jpa.JpaQuery.getResultList

:1300) at com.objectdb.o.QRR.b(QRR.java:197) at com.objectdb. jpa .JpaQuery.getResultList(JpaQuery.java:618) at ie.longpat. jpa .entity.control.MomentPayloadController.findMomentPayloadEntities

[ObjectDB 2.6.0_04] Unexpected exception (Error 990) com.objectdb.jpa.JpaQuery.getResultList

.objectdb.o.QRR.f(QRR.java:139) at com.objectdb. jpa .JpaQuery.getResultList(JpaQuery.java:716) at com.btc

@FetchGroup in JPA similar to JDO

I was checking what's new in different JPA implementation on the market and found quite interesting two features. First of those features is described in this ticket. It's similar to FetchGroup from JDO. It works like this. First you specify attributes to fetch from database: @FetchGroup(name

jakarta.persistence.Graph

Jakarta Persistence ( JPA ) Interface jakarta.persistence.Graph Declares operations common to EntityGraph and Subgraph . See Also: EntityGraph Subgraph Since: Jakarta Persistence ( JPA ) 3.2 Public ... is not an attribute of this entity.. Since: Jakarta Persistence ( JPA ) 3.2 AttributeNode

Unlimited JPA Persistable Types

Unlimited JPA Persistable Types

JPQL Subqueries (JPA 1.0)

JPQL Subqueries (JPA 1.0)

jakarta.persistence.EntityManagerFactory

Jakarta Persistence ( JPA ) Interface jakarta.persistence.EntityManagerFactory Super Interfaces ... Persistence ( JPA ) 1.0 The Database Connection using JPA article explains how to use EntityManagerFactory ... entityGraph - entity graph Since: Jakarta Persistence ( JPA ) 2.1 void addNamedQuery ( String name , Query query

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 Guest entity class will represents guests in the database. We also need to configure JPA by setting ... to the persistence.xml file: com.objectdb. jpa .Provider Now ObjectDB should be used as a JPA provider

Step 1: Create a Java Project

the project. To add ObjectDB/ JPA support for the project: Right click the Libraries folder in the [Projects ... with ObjectDB/ JPA support. The next step is creating a JPA Entity class .

Step 1: Create a Java EE 6 Web Project

dynamic web project. To add ObjectDB/ JPA support to the project, drag the objectdb.jar file from ... : You should now have an Eclipse Java EE 6 project with ObjectDB/ JPA support. The next step is creating a JPA Entity class .

Step 1: Create a Maven Web Project

Framework and ObjectDB/ JPA support. The next step is  creating a JPA Entity class .