ObjectDB Database Search

51-100 of 200 results

How to store and compare Date up to sec.

How to store and compare date up to sec? By default it stores the dates like "23 May, 2020 10:25:23:112 AM" means date and timestamp including milisec but  I want to store till sec("23 May, 2020 10:25:23 AM") like MySql and other db. They  stores the date up to sec. Manoj Manoj

Why are my Map entries not stored?

Why are my values of the map "states" not stored in the database? It seems the 'State' is stored ... ; 'Authority' (value) is stored (I see entries in the Explorer), but there seems to miss the connection ... @MappedBy: In that case the map content will be stored embedded in the Ticket instances and no 

Storing Images

What is the best way to store images? As external files? In the database as blobs? Are blobs supported? joelc Joel i use odb to store images, in a complex, persistent uml model based on Eclipse EMF/UML2. to persist the images, i just store an array of bytes (byte[]) representing the encoded images

Storing XML files in ObjectDB

Hello, Is it possible to store XML files in ObjectDB?   Thanks st.clair.clarke St Clair Clarke ObjectDB can be used to store any type of data including XML. For example, you can define a generic Element entity and store the XML as a tree of Element nodes. Another option is to define an entity

First query before any of the object has been stored

object is different from what's already stored .  The problem is that, before any instances of that object have been stored , the query generates an exception.  I'd been expecting  ... if any of an object has been stored yet? jshaffstall Jay Shaffstall The query fails

stored procedure in ObjectDB

Hi,     Does ObjectDB support " stored procedure"?     Some frequent ... Yang No stored procedures in ObjectDB. JPA (or JDO) lifecycle events can be used as a replacement ... overhead (no additional round trips), and JPA lifecycle events (unlike stored procedures) are portable

Class fields selection to store

In a class how do I define which are the fields to be stored ? (using JDO API) It's using persistence-modifier="persistent" ? If I have a class with 40 fields and I only want to store one of the fields should I do the following? Which are the value used for fields that I do not want to store

Attempt to store an instance of a non persistable type java.net.URL

can rewrite this to simply check whether it is a valid URL $url string and storing it. I can return getURL also as transient to keep my public contract. But it would be nice to have URLs stored directly.  

How to configure where the ODB is stored?

Hi, The documentation is lacking in this respect. How do I configure where the ObjectDB database file is stored . I need to know where it is so I can inspect it with 'database explorer'. The docs say ... it. So, where is this file stored ??? Also, the contents of the DB don't seem to be persisted between AppServer

Unable to store AtomicInteger

to store an instance of a non persistable type java.util.concurrent.atomic.AtomicInteger I am using ... is to store an int then from the entity call an extra setup function in @PostLoad

Attempt to store an instance of a non persistable type

: Attempt to store an instance of a non persistable type technology.tavla.common.device.data.log.v2 ... : Attempt to store an instance of a non persistable type technology.tavla.common.device.data.log.v2

Storing methods?

I don't think ObjectDB does this, but I want to ask to make sure: are methods stored in the database along with data?  Thanks. lsitongia Leonard Sitongia No, methods are not stored in the database. Therefore, if in client-server mode user defined methods are in use in queries (supported by

Wrong data stored in time only fields

This may be related to the fix for the problem described in this thread: Wrong data stored in date only fields . The object and its date and time fields are the same as in the referenced thread. Except we are using ObjectDB 2.6.4_08, the system time zone is set to EST and both the OS and JVM

Storing objects problem

Storing objects problem

Wrong data stored in date only fileds

Wrong data stored in date only fileds

Storing Images and Object Pooling

Storing Images and Object Pooling

Storing a tree of data (depth=3)

Storing a tree of data (depth=3)

Database crash

; ------------------------------------------------------------------------------------------------------------------------ [2017-07-10 11:22:12 #1 store ... server] Server on port 3333 has started by 10380@wzbhb101 [2017-07-10 23:06:55 #3 store ] Database ... -07-10 23:07:23 #1 store ] Database 'F:\Hummingbird\Objectdb\db\coreSystemDb.odb' is opened by 11028

Obtaining a JPA Database Connection

an EntityTransaction Operations that modify database content, such as store , update, and delete

SpringBoot-Point

. the points that the user draws on the canvas, are stored using Jakarta Persistence (JPA) in

ObjectDB 2.9 Developer's Guide

ObjectDB. hows how to use JPA to store , retrieve, update and delete database objects. Explains

Database Connection using JPA

(properties); EntityTransaction Operations that affect the content of the database ( store , update, delete

JPA Metamodel API

. This includes all the types whose instances are already stored in the database. Three additional

JPA Persistence Unit

classes become known to ObjectDB, for example when a first instance of the class is stored in the database.

Locking in JPA

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

ObjectDB Overview

mode and Embedded mode. Single JAR with no external dependencies. Database is stored as a single

JPA Exceptions

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

javax.persistence.PersistenceException Attempt to store an instance of a non persistable type java.net.URL

whether it is a valid URL $url string and storing it. I can return getURL also as transient to keep my public contract. But it would be nice to have URLs stored directly.       webel Dr

InterfaceRef jakarta.persistence.EntityManager

an instance of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed. If the stored procedure returns one or ... assigned to the stored procedure query in metadata Return: the new stored procedure query instance

AnnotationRef jakarta.persistence.NamedStoredProcedureQuery

and names a stored procedure, its parameters, and its result type. The NamedStoredProcedureQuery ... is the name of the stored procedure in the database. The parameters of the stored procedure ... the parameter list of the stored procedure. The resultClasses element refers to the class (or classes

EntityManager.createStoredProcedureQuery(procedureName,resultClasses) - JPA Method

an instance of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed. The resultClass arguments must be specified in the order in which the result sets is returned by the stored procedure invocation. Parameters

EntityManager.createStoredProcedureQuery(procedureName,resultSetMappings) - JPA Method

an instance of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed. The resultSetMapping arguments must be specified in the order in which the result sets is returned by the stored procedure invocation

EntityManager.createStoredProcedureQuery(procedureName,resultClasses) - JPA Method

an instance of StoredProcedureQuery for executing a stored procedure in the database. Parameters must be registered before the stored procedure can be executed. The resultClass arguments must be specified in the order in which the result sets will be returned by the stored procedure invocation. Parameters

InterfaceRef jakarta.persistence.AttributeConverter

Since: JPA 1.0 Public Methods Y convertToDatabaseColumn (X attribute) Converts the value stored in the entity attribute into the data representation to be stored in the database. Parameters: attribute - the entity attribute value to be converted Return: the converted data to be stored in

EnumRef jakarta.persistence.ParameterMode

.ParameterMode Specifies the mode of a parameter of a stored procedure query. See Also: StoredProcedureQuery StoredProcedureParameter Since: JPA 2.1 Enum Constants IN Stored procedure input parameter Since: JPA 2.1 INOUT Stored procedure input/output parameter Since: JPA 2.1 OUT Stored procedure output

InterfaceRef jakarta.persistence.StoredProcedureQuery

JPA Interface StoredProcedureQuery Super Interfaces: Query Interface used to control stored procedure query execution. Stored procedure query execution may be controlled in accordance ... . It is not required to set the values of stored procedure parameters for which default values

EntityManager.createStoredProcedureQuery(procedureName) - JPA Method

a stored procedure in the database. Parameters must be registered before the stored procedure can be executed. If the stored procedure returns one or more result sets, any result set is returned as a list of type Object[] . Parameters: procedureName - name of the stored procedure in the database Return

AnnotationRef jakarta.persistence.TableGenerator

that stores the last value generated. Since: JPA 1.0 String name default "" (optional) A unique ... this set of generated values from others that may be stored in the table. Defaults to a provider-chosen value to store in the primary key column of the generator table Since: JPA 1.0 String schema default

AnnotationRef jakarta.persistence.StoredProcedureParameter

of a named stored procedure query. All parameters of a named stored procedure query must be declared ... a stored procedure. Since: JPA 2.1 String name default "" The name of the parameter as defined by the stored procedure in the database. If a name is not specified, it is assumed that the stored procedure

EntityManager.createNamedStoredProcedureQuery(name) - JPA Method

a stored procedure in the database. Parameters must be registered before the stored procedure can be executed. If the stored procedure returns one or more result sets, any result set is returned as a list of type Object[] . Parameters: name - name assigned to the stored procedure query in metadata Return

EnumRef jakarta.persistence.InheritanceType

properties, and so the state of an entity instance might be stored across multiple table rows. A join ... entity class hierarchy. Subclasses are stored together with the root class, and each entity instance is stored as a single table row. The concrete subclass represented by a row is determined by

Eclipse/JPA Web Application Tutorial

and all the Guest entity objects are stored in an ObjectDB database. Required Software

JPA Web Application Tutorial

by a  Guest entity object and all the  Guest entity objects are stored in an ObjectDB

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 [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting  New Entity Class ... (or  New Other... Persistence Entity Class and clicking

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 project node (in the [Package Explorer] window) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package

Getting Started with JPA

This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple  Point entity objects, where each  Point has two persistent fields -  x and  y . If you already know JPA - the source code will be straightforward

NetBeans/JPA Java EE Tutorial

the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in

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 project node (in the [Projects] window) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name

Getting Started with JPA and NetBeans

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

AnnotationAttrRef jakarta.persistence.Column.secondPrecision

) The number of decimal digits to use for storing fractional seconds in a SQL time or timestamp column ... seconds should not be stored in a time column, or that the maximum number of digits supported by the database and JDBC driver should be stored in a timestamp column. Since: JPA 3.2