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

of a new entity is 1 when it's stored in the database for the first time. In every transaction

Server Configuration

to the server: The port attribute specifies the TCP port on which the server listens for new

Database Replication and Clustering

a new replication of an existing master database, you must first copy the master database to the slave

Detached JPA Entities

not exist in the persistence context, a new one is created. The method returns the managed entity

Logical Operators in JPQL and Criteria API

(including Predicate instances) and return a new Predicate instance: Predicate p1 = cb. and (isInUN

JPA Value Generation Annotations

should be automatically generated when a new entity is persisted to the database. It allows defining

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 Criteria Queries

, set new attribute values, and restrict the scope with a WHERE clause. Use this interface to define

CRUD Database Operations with JPA

Given an EntityManager instance, em , which manages the persistence context for the database, you can use it to store, retrieve, update, and delete objects. Storing new entities The following code fragment stores 1,000 Point objects in the database: em. getTransaction (). begin (); for (int i = 0

Chapter 6 - Configuration

("objectdb.home", "/odb"); // new $objectdb As with any other system property it can also be set as

Posting Sample Code

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

Updating JPA Entities

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

JPA Persistence Unit

configuration: PersistenceConfiguration config = new PersistenceConfiguration("my-pu") .property

Server User List

: Permission to modify the contents of a database. create : Permission to create new subdirectories

JPA Primary Key

, ObjectDB automatically sets the primary key for every new entity. The key is a sequential 64-bit number

JPA Listeners & Callbacks Annotations

applied to this class. Persistence (creation) events Use these annotations to handle logic when saving new

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

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

) Since: Jakarta Persistence (JPA) 1.0 Public Constructors EntityNotFoundException () Constructs a new ... .0 EntityNotFoundException ( Exception cause ) Constructs a new EntityNotFoundException exception ... message ) Constructs a new EntityNotFoundException exception with the specified detail message

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

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

jakarta.persistence.criteria.Predicate

a new expression object. Unlike Expression.cast , this method does not cause type conversion ... Parameters: type - intended type of the expression Returns: new expression of the given type ... this expression to the specified type, returning a new expression object. Unlike Expression.as , this method does

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