ObjectDB Database Search

51-100 of 200 results

java.sql.Time field off by 30 minutes

java.sql.Time field off by 30 minutes

getting "Unexpected total page count" error when diagnosis mu db by ObjectDB doctor.

getting "Unexpected total page count" error when diagnosis mu db by ObjectDB doctor.

Getting com.objectdb.o.UserException:

. com.objectdb.o.UserException: Failed to create a new file 'file:C:\Program Files (x86)\Apache Group ... ) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Caused by : java.io.FileNotFoundException: file:C:\Program Files (x86)\Apache Group \Tomcat 4.0\webapps\Expresso\WEB-INF\log\odb20120904

jakarta.persistence.NamedEntityGraphs

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedEntityGraphs Implemented Interfaces: Annotation Target: Type Used to group NamedEntityGraph annotations. See Also: NamedEntityGraph Since: Jakarta Persistence (JPA) 2.1 Annotation Elements NamedEntityGraph[] value Since: Jakarta

jakarta.persistence.Converts

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Converts Implemented Interfaces: Annotation Target: Method, Field, Type Used to group Convert annotations. Multiple converters must not be applied to the same basic attribute. See Also: Convert Since: Jakarta Persistence (JPA) 2.1

JPA Criteria Query Expressions

expression handling by using a minimal set of reusable interfaces, so many different types of expressions are represented by the same Expression interface.  Core expressions The following interfaces

JPA Lifecycle Events

annotation. By default, callback methods in a superclass are also invoked for entities of its subclasses ... attached to an entity class are inherited by its subclasses. To prevent this inheritance, add

Server Configuration

The configuration element specifies settings for running an ObjectDB Server . The server is also affected by other elements in the configuration file, such as the and elements. The default ... server. Every database file in the data directory and its subdirectories can be accessed by the server

Schema Update

the original name (specified by the required name attribute) to the new name. All classes in ... , the class name changes from the original name (specified by the required name attribute) to the new name

JPA Metamodel Attributes

are represented by : Represents single-valued attributes. This includes basic types (primitives ... ) with "To-One" cardinality. Plural (collection) attributes Collection-valued attributes are represented by

combined index not used

.properties.name = 'scheduledSlot') GROUP BY a.endDate, a.objectsInCharge.nodePath, a.objectsInCharge ... --------------------- Group the results of step 5 by : a.endDate,v$1.nodePath,v$3.doubleValue. Step 7: Apply ... .type = 1) and (a.objectsInCharge.properties.name = 'scheduledSlot') GROUP BY a.endDate

jakarta.persistence.criteria.AbstractQuery.getGroupRestriction()

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery Predicate getGroupRestriction() Return the predicate that corresponds to the restriction(s) over the grouping items, or null if no restrictions have been specified. Returns: having clause predicate. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.AbstractQuery.having(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery having (    Expression restriction ) Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any. Parameters: restriction - a simple or compound

jakarta.persistence.criteria.AbstractQuery.having(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery having (    Predicate... restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously having added

jakarta.persistence.criteria.AbstractQuery.having(List)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery having (    List restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having

jakarta.persistence.criteria.Subquery.having(Expression)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Subquery having (    Expression restriction ) Specify a restriction over the groups of the subquery. Replaces the previous having restriction(s), if any. This method only overrides the return type

jakarta.persistence.criteria.Subquery.having(Predicate...)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Subquery having (    Predicate... restrictions ) Specify restrictions over the groups of the subquery according the conjunction of the specified restriction predicates. Replaces the previously added having

jakarta.persistence.criteria.Subquery.having(List)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Subquery having (    List restrictions ) Specify restrictions over the groups of the query according the conjunction of the specified restriction predicates. Replaces the previously added having restriction(s

Strings in JPQL and Criteria Queries

' . TRIM(BOTH FROM ' UK ') is evaluated to 'UK' . By default, spaces are removed, but you can specify

Date and Time in JPQL and Criteria Queries

criteria queries by using the generic CriteriaBuilder 's function method, as follows: // Create

JPA Attributes Annotations

as map keys: Specifies whether an enum should be persisted by its ordinal value or its string name

JPA Metamodel Types

inherited by entities but not being entities themselves. Represents an @Embeddable type, a managed type

jakarta.persistence.Entity

type maps to a single column in one of the tables mapped by the entity, a field of property of embeddable type has nested mappings to multiple columns in one of the tables mapped by the entity ... to a foreign key column or columns in one of the tables mapped by the entity

jakarta.persistence.MapKeyJoinColumn

) The name of the column referenced by this foreign key column. The referenced column is in the table ... (Optional) Whether the column is included in SQL INSERT statements generated by the persistence ... ) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default: true

jakarta.persistence.EntityGraph

the name of a named EntityGraph (an entity graph defined by means of the NamedEntityGraph annotation, XML descriptor element, or added by means of the EntityManagerFactory.addNamedEntityGraph method ... of this call may be overridden by subsequent invocations of Graph.addAttributeNode or Graph.addSubgraph

jakarta.persistence.InheritanceType

, with only the columns mapped to persistent fields and properties declared by the entity class. Each ... represented by a row is determined by the value held by a discriminator column . Since: Jakarta Persistence

jakarta.persistence.JoinColumn

Persistence (JPA) 1.0 String referencedColumnName (Optional) The name of the column referenced by ... (Optional) Whether the column is included in SQL INSERT statements generated by the persistence ... ) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Default: true

jakarta.persistence.MapKeyColumn

to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping ... statements generated by the persistence provider. Default: true Since: Jakarta Persistence (JPA) 1.0 boolean updatable (Optional) Whether the column is included in SQL UPDATE statements generated by

jakarta.persistence.NamedAttributeNode

of this element is the name of the subgraph as specified by the name element of the corresponding NamedSubgraph element. If multiple subgraphs are specified due to inheritance, they are referenced by ... subclass subgraphs. The value of this element is the name of the key subgraph as specified by

cannot delete objects after crash (see issue 2283)

with no sync, by performing one sync of the recovery file before writing a group of updates to the physical database. support Support ... of your production OS or disk requires special consideration (e.g. if synchronized writing by ObjectDB to the disk returns before the physical writing is completed and the data is still buffered by the OS / disk

queries under 2.7.6_4 significantly slower than under 2.7.6

results --------------------- Group the results of step 4 by :   o. [Step 6] Remove duplicates ... .classIdentifier='(TC)')). [Step 1b] Order the results of step 1a by :   v$1. [Step 1c] Scan index com.agile ... )')). [Step 1d] Order the results of step 1c by :   v$1. [Step 1e] Merge the results of steps 1b

jakarta.persistence.PersistenceUnitUtil

or managed by entity managers for this persistence unit or on new entity instances. Since: Jakarta ... . This method may, but is not required to, load the given entity by side effect. Parameters: entity ... may, but is not required to, load the given entity by side effect. Parameters: entityClass - an entity

jakarta.persistence.Graph

of an attribute mapped for eager fetching. The effect of this call may be overridden by subsequent ... of an attribute mapped for eager fetching. The effect of this call may be overridden by subsequent ... inclusion of attributes mapped for eager fetching. The effect of this call may be overridden by subsequent

jakarta.persistence.FlushModeType

Enumerates flush modes recognized by the EntityManager . When queries are executed ... this by flushing updates to those entities to the database or by some other means. On the other hand

jakarta.persistence.JoinTable

to the concatenated names of the two associated primary entity tables, separated by an underscore ... , a default foreign key strategy is selected by the persistence provider. Default: @ForeignKey ... strategy is selected by the persistence provider. Default: @ForeignKey(ConstraintMode.PROVIDER_DEFAULT

jakarta.persistence.NamedEntityGraph

. A reference to a named entity graph may be obtained by calling EntityManager.getEntityGraph ... can still be fully specified by an attribute node referencing a subgraph. Default: false Since: Jakarta ... the entity graph. These are referenced by name from NamedAttributeNode definitions. Default

jakarta.persistence.TypedQuery.setHint(String,Object)

may be used to specify query properties and hints. Properties defined by this specification must be observed by the provider. Vendor-specific hints that are not recognized by a provider must be silently ... on the database in use and the locking mechanisms used by the provider, this hint may or may not be observed

jakarta.persistence.ForeignKey

. If this annotation is not specified, a default foreign key strategy is selected by the persistence ... should be generated. The syntax used in the foreignKeyDefinition element should follow the SQL syntax used by

jakarta.persistence.LockOption

Jakarta Persistence (JPA) Interface jakarta.persistence.LockOption An option influencing the behavior of EntityManager.lock . Built-in options control scope , and timeouts . This interface may be implemented by custom provider-specific options which extend the options defined by the specification

jakarta.persistence.MapsId

Java type as the primary key of the entity referenced by the relationship, the value attribute is not ... or OneToOne relationship declared by a dependent entity is annotated MapsId , an instance

jakarta.persistence.Converter

mapping descriptor. The target type for a converter is determined by the actual type argument of the first ... entity in the persistence unit, except for attributes for which conversion is overridden by means

Spring MVC and JPA Tutorial

a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor

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 ... . A GuestDao component is automatically constructed and injected by Spring into the guestDao field

Step 6: Set the Spring XML

editor ( by right clicking and selecting  Open With Text Editor or by double click

Step 1: Create a Java Project

We start by creating a new NetBeans Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ). The name of the Main class should be tutorial.Main . Verify that exactly this case sensitive fully

Step 6: Set the Spring XML

another xml configuration file. Open the web.xml file (under Web Pages WEB-INF) in a text editor ( by right clicking and selecting Edit or by double click and then moving to the XML tab in the editor window

Step 7: Run the Spring Web App

;you can run the application now by right clicking the project node (in the [Project Explorer] window ... ; ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the  Manual .

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

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting  New Other... Web Servlet and clicking  Next . The Java package name should be guest