ObjectDB Database Search

101-150 of 200 results

How to start a objectdb server with new Daemon (without blocking the thread)??

How to start a objectdb server with new Daemon (without blocking the thread)??

"Unsupported auto value type java.lang.String" when persisting new instance

"Unsupported auto value type java.lang.String" when persisting new instance

Generating new activation code gives 500 server error

Trying to generate a new activation code using our site license key gives a 500 error every time. Code generated using version 2.7.4_04 and openjdk 1.8.0_171. spiffy Jonathan Harley There was a problem, thank you for this report. Please try again now. support Support

Generating new activation code gives 500 server error

Generating new activation code gives 500 server error

jakarta.persistence.EntityManagerFactory

: AutoCloseable Interface used to interact with the persistence unit, and to create new instances ... callInTransaction ( Function work ) Create a new application-managed EntityManager with an active ... already associated with the caller, then the EntityManager is associated with a new transaction

JPA Entity Fields

for every entity object. The initial version of a new entity object (when stored in the database

Server Configuration

on which the server is listening for new connections. Usually the default port 6136 should be specified

Database Replication and Clustering

, under the server data root directory. Starting a new replication of an existing master database

Detached Entity Objects

object yet a new managed entity object is constructed. The detached object itself, however, remains

Logical Operators in JPQL and Criteria API

that take two Expression operands (including Predicate instances) and return a new Predicate instance

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

JPA Query API

Queries are represented in JPA 2 by two interfaces - the old Query interface, which was the only interface available for representing queries in JPA 1, and the new TypedQuery interface that was introduced in JPA 2. The TypedQuery interface extends the Query interface. In JPA 2 the Query interface

CRUD Database Operations with JPA

Given an EntityManager , em , that represents a JPA connection to the object database, we can use it to store, retrieve, update and delete database objects. Storing New Entity Objects The following code fragment stores 1,000 Point  objects in the database: em. getTransaction (). begin

Running JPA Queries

warning. If, however, the new TypedQuery interface is used - casting is unnecessary

Criteria Query Selection and Results

;for more details and examples. Query Results as Tuples JPA 2 introduces a new way to represent

Chapter 6 - Configuration

"); // new $objectdb As with any other system property it can also be set as an argument to the JVM

Posting Sample Code

.getTransaction().begin();         MyEntity e = new MyEntity("test

Paths and Types in JPQL and Criteria API

the equivalent JOIN query. Entity Type Expressions The TYPE operator (which is new in JPA 2) returns the type

Updating JPA Entity Objects

. getTransaction (). begin (); employee.projects[0] = new Project(); // not detected automatically

Server User List

of a database. create - permission to create new subdirectories and database files. delete - permission

JPA Exceptions

because of an attempt to store a new entity object with a primary key that is already in use by another existing

JPA Primary Key

is a sequential 64 bit number ( long ) that is set automatically by ObjectDB for every new entity object

jakarta.persistence.criteria.CriteriaBuilder

is for an entity class, the resulting entities will be in the new state after the query is executed ... query from the first query. Returns: a new criteria query which returns the result of subtracting ... . Returns: a new criteria query which returns the result of subtracting the results of the second query

jakarta.persistence.PessimisticLockException

PessimisticLockException () Constructs a new PessimisticLockException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 PessimisticLockException ( String message ) Constructs a new ... ) Constructs a new PessimisticLockException exception with the specified detail message and cause

jakarta.persistence.LockTimeoutException

(JPA) 2.0 Public Constructors LockTimeoutException () Constructs a new LockTimeoutException ... ( String message ) Constructs a new LockTimeoutException exception with the specified detail message ... ( String message , Throwable cause ) Constructs a new LockTimeoutException exception with the specified

jakarta.persistence.QueryTimeoutException

.0 Public Constructors QueryTimeoutException () Constructs a new QueryTimeoutException exception ... message ) Constructs a new QueryTimeoutException exception with the specified detail message ... ( String message , Throwable cause ) Constructs a new QueryTimeoutException exception with the specified

jakarta.persistence.OptimisticLockException

Constructors OptimisticLockException () Constructs a new OptimisticLockException exception with null as ... ) Constructs a new OptimisticLockException exception with the specified detail message. Parameters: message ... , Throwable cause ) Constructs a new OptimisticLockException exception with the specified

jakarta.persistence.criteria.CriteriaUpdate

of the specified attribute. Parameters: attribute - attribute to be updated value - new value Returns ... - attribute to be updated value - new value Returns: the modified update query. Since: Jakarta ... attribute. Parameters: attribute - attribute to be updated value - new value Returns: the modified

jakarta.persistence.EntityNotFoundException

a new EntityNotFoundException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 EntityNotFoundException ( Exception cause ) Constructs a new EntityNotFoundException ... ( String message ) Constructs a new EntityNotFoundException exception with the specified

jakarta.persistence.EntityExistsException

EntityExistsException () Constructs a new EntityExistsException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 EntityExistsException ( String message ) Constructs a new ... ) Constructs a new EntityExistsException exception with the specified detail message and cause

jakarta.persistence.RollbackException

() Since: Jakarta Persistence (JPA) 1.0 Public Constructors RollbackException () Constructs a new ... RollbackException ( String message ) Constructs a new RollbackException exception with the specified detail message ... ( String message , Throwable cause ) Constructs a new RollbackException exception with the specified

jakarta.persistence.TransactionRequiredException

. Since: Jakarta Persistence (JPA) 1.0 Public Constructors TransactionRequiredException () Constructs a new ... ) 1.0 TransactionRequiredException ( Exception cause ) Constructs a new TransactionRequiredException ... TransactionRequiredException ( String message ) Constructs a new TransactionRequiredException exception

jakarta.persistence.NonUniqueResultException

() Constructs a new NonUniqueResultException exception with null as its detail message. Since: Jakarta Persistence (JPA) 1.0 NonUniqueResultException ( Exception cause ) Constructs a new ... NonUniqueResultException ( String message ) Constructs a new NonUniqueResultException exception

jakarta.persistence.PersistenceException

. Since: Jakarta Persistence (JPA) 1.0 Public Constructors PersistenceException () Constructs a new ... PersistenceException ( String message ) Constructs a new PersistenceException exception with the specified ... PersistenceException ( String message , Throwable cause ) Constructs a new PersistenceException exception

jakarta.persistence.LockModeType

are synonyms for OPTIMISTIC and OPTIMISTIC_FORCE_INCREMENT respectively. The latter are preferred for new ... for new applications. Since: Jakarta Persistence (JPA) 1.0 WRITE Synonymous with OPTIMISTIC_FORCE_INCREMENT . OPTIMISTIC_FORCE_INCREMENT is preferred for new applications. Since: Jakarta Persistence

jakarta.persistence.criteria.PluralJoin

a typecast upon the expression, returning a new expression object. Unlike Expression.cast , this method ... failure. Inherited from Expression Parameters: type - intended type of the expression Returns: new ... ( Class type ) Cast this expression to the specified type, returning a new expression object

jakarta.persistence.criteria.Path

(JPA) 1.0 Expression as ( Class type ) Perform a typecast upon the expression, returning a new ... - intended type of the expression Returns: new expression of the given type. See Also: ::cast(Class ... to the specified type, returning a new expression object. Unlike Expression.as , this method does result in

Step 4: Run the Application

, a new ObjectDB database file is generated in the db subdirectory under the ObjectDB installation

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 . Building a new application step by step is an effective way to learn - but if you prefer

Spring MVC JPA Tutorial - IntelliJ Project

IDEA: Select the new run configuration at the toolbar and click the green run icon (or  Shift

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  NetBeans . Building a new application step by step is an effective way to learn - but 

Step 4: Run the Application

) When you run the application for the first time, a new ObjectDB database file is generated in the db sub

Step 3: Add a Main Class

a database connection // (create a new database if it doesn't exist yet): EntityManagerFactory emf

Step 5: Design a BIRT Report Chart

In this step we will add a simple chart to the report: Open the [ New Chart] dialog box by dragging a  Chart from the [Palette] window and dropping it on the report design (.rptdesign) layout. In the [Select Chart Type] tab select Tube as the chart type and click Next . In the [Select Data

Getting Started with JPA - Maven Project

The Getting Started with JPA tutorial provides step by step instructions on how to build a simple JPA database driven application in Eclipse or NetBeans . Building a new application step by step is an effective way to learn - but if you prefer, you may download and run the result

Getting Started with JPA

this tutorial easily, even if you are completely new to JPA. This tutorial is available in the following

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 application step by step is an effective way to learn - but if you prefer

JPA Web App Tutorial - IntelliJ Project

the Configurations dialog box. Run the project in IntelliJ IDEA: Select the new run configuration

Java EE 6 JPA Tutorial - IntelliJ Project

dialog box. Run the project in IntelliJ IDEA: Select the new run configuration at the toolbar

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 is more commonly used. Therefore, it might be the first choice for most new applications. You can use JPA as