Internal Website Search

1-50 of 84 results

Auto Generated Values

per type hierarchy, so generated values are unique only per type hierarchy. The Sequence Strategy The sequence strategy consists of two parts - defining a named sequence and using the named sequence ... a sequence and accepts a name, an initial value (the default is 1) and an allocation size (the default

JDO sequences from ORM file

I want to use sequences in JDO without using annotations. Normally this is done with a package-X ... ? Could you try putting it in the ordinary package.jdo file? support Support I didn't think sequence was valid ... for the sequence , rather than getSequence() .                    

Use of sequences to generate field values in JDO

I'm trying to use sequences to set field values in JDO.  I want to do this in XML metadata ... .Audit.id) (error 341) Can you describe how I should be using sequences to provide field values?       sjzlondon Steve Zara It seems that the fully qualified name of this sequence

Time Sequence Object Command DB

down to the leaf. The obvious design solution is to write the transactions to the database in sequence ... , which is true.  Commands must, however, be executed in their time-ordered sequence .  Object schemas are stored in the database and updated schemas are added in sequence in the database

javax.persistence.GenerationType.SEQUENCE

JPA Enum Constant in javax.persistence.GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence . Since: JPA 1.0

ObjectDB Object Database Features

allocation of global object database IDs. Sequence IDs - IDs are allocated automatically by application defined sequences . Application IDs - primary key values are set explicitly by the application. Query

Is there a function of "drop table" or "delete from table"?

sequences is not supported by JPA and JDO. The following non portable code, however, resets the global sequence IDs:     javax.jdo.datastore. Sequence sequence =     ... ");      sequence .allocate((int)- sequence .currentValue()); Assuming you use JPA

Primary key generation problem after changing entity package

of my configuration file - and the changes have been succesfully made in database. Unfortunately, sequences ... _BOARD", strategy = GenerationType. SEQUENCE ) lwalkowski Lukasz Walkowski Also, when I modify ... ;     @GeneratedValue(generator = "SEQ_BOARD", strategy = GenerationType. SEQUENCE

javax.persistence.SequenceGenerator

for the GeneratedValue annotation. A sequence generator may be specified on the entity class or ... sequence numbers from the sequence . Since: JPA 1.0 String catalog default "" (Optional) The catalog of the sequence generator. Since: JPA 2.0 int initialValue default 1 (Optional) The value from

Possible issue for default id generator

generator when strategy is sequence . Error: Incomplete definition of auto value in field MyTestCase ... and 36: @GeneratedValue(strategy=GenerationType. SEQUENCE )//, generator="seq") @Id @SequenceGenerator ... using the  GenerationType. SEQUENCE strategy without specifying a sequence is meaningless

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml ... is found OK and that the sequences are declared properly (they also work for postgres ... that the sequence generator isn't working when the EJB is embedded in a WAR file?        

On ensuring ID available after persist

, the SEQUENCE strategy generates an automatic value as soon as a new entity object is   persisted (i.e ... . SEQUENCE - should work well except for DBMS that do not support sequences . Regarding flush - I think it may be slower than just using SEQUENCE or TABLE . support Support The reason that ObjectDB doesn't

Change Sequcene Id

? javax.jdo.datastore. Sequence seq = em.unwrap(javax.jdo.PersistenceManager.class).getSequence ... Masaaki Tsugami You cannot set the next id of an existing sequence . The purpose of the allocate ... sequence with a new initial id, and set the relevant entity class to use the new sequence (note

Date field Index is corrupted due to time change

;   @SequenceGenerator(         name="DateTime_ sequence ",         sequenceName="DateTime_ sequence ",     ... ;     @GeneratedValue(strategy=GenerationType. SEQUENCE , generator="DateTime_ sequence

Wrong data stored in time only fields

; @SequenceGenerator(         name="DateTime_ sequence ",         sequenceName="DateTime_ sequence ",        ... . SEQUENCE , generator="DateTime_ sequence ")         public Long

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

;  name="RecordingMetaData_ sequence ",     sequenceName="RecordingMetaData_ sequence ... _ sequence ",     sequenceName="RecordingMetaData_ sequence ",    

javax.jdo.datastore.Sequence

JDO Interface Sequence Implementations of this interface can be used to obtain sequences ... that the application will need additional sequence value objects in short order. There is no externally ... of obtaining additional sequence value objects. Parameters: additional - the number of additional values

javax.jdo.annotations.Sequence

JDO Annotation Sequence Target: ElementType.TYPE Implemented Interfaces: Annotation Annotation for a datastore sequence . Maps across to the JDO2 element " sequence ". Since: JDO 2.1 Public Annotation Attributes String datastoreSequence default "" Name of the sequence in the datastore. Since: JDO 2.1

Sequence.current() - JDO Method

JDO Method in javax.jdo.datastore. Sequence Object current () Returns the current sequence value object if it is available. It is intended to return a sequence value object previously used. If the current sequence value is not available, throw JDODataStoreException. Return: the current value Since: JDO 2.0

Sequence.nextValue() - JDO Method

JDO Method in javax.jdo.datastore. Sequence long nextValue () Returns the next sequence value as a long. If the next sequence value is not available or is not numeric, throw JDODataStoreException. Return: the next value Since: JDO 2.0

Sequence.currentValue() - JDO Method

JDO Method in javax.jdo.datastore. Sequence long currentValue () Returns the current sequence value as a long. If the current sequence value is not available or is not numeric, throw JDODataStoreException. Return: the current value Since: JDO 2.0

Sequence.getName() - JDO Method

JDO Method in javax.jdo.datastore. Sequence String getName () Returns the fully qualified name of the Sequence . Return: the name of the sequence Since: JDO 2.0

Sequence.allocate(additional) - JDO Method

JDO Method in javax.jdo.datastore. Sequence void allocate (   int additional ) Provides a hint to the implementation that the application will need additional sequence value objects in ... improve the efficiency of the algorithm of obtaining additional sequence value objects. Parameters

Sequence.next() - JDO Method

JDO Method in javax.jdo.datastore. Sequence Object next () Returns the next sequence value as an Object. If the next sequence value is not available, throw JDODataStoreException. Return: the next value Since: JDO 2.0

javax.jdo.annotations.DatastoreIdentity.sequence

JDO Annotation Attribute in javax.jdo.annotations.DatastoreIdentity String sequence default "" Name of sequence to use when the strategy involves sequences Since: JDO 2.1

javax.jdo.annotations.Persistent.sequence

JDO Annotation Attribute in javax.jdo.annotations.Persistent String sequence default "" Name of the sequence to use with particular value strategies. Since: JDO 2.1

javax.jdo.annotations.Sequence.datastoreSequence

JDO Annotation Attribute in javax.jdo.annotations. Sequence String datastoreSequence default "" Name of the sequence in the datastore. Since: JDO 2.1

javax.jdo.annotations.Sequence.strategy

JDO Annotation Attribute in javax.jdo.annotations. Sequence SequenceStrategy strategy default null Strategy for the sequence . Since: JDO 2.1

javax.jdo.annotations.Sequence.extensions

JDO Annotation Attribute in javax.jdo.annotations. Sequence Extension [] extensions default {} Vendor extensions for this sequence . Since: JDO 2.1

javax.jdo.annotations.Sequence.factoryClass

JDO Annotation Attribute in javax.jdo.annotations. Sequence Class factoryClass default void.class Name of a factory class for generating the sequence values. Since: JDO 2.1

javax.jdo.annotations.Sequence.name

JDO Annotation Attribute in javax.jdo.annotations. Sequence String name default null The symbolic name of the datastore sequence . Since: JDO 2.1

javax.jdo.annotations.IdGeneratorStrategy.SEQUENCE

JDO Enum Constant in javax.jdo.annotations.IdGeneratorStrategy SEQUENCE Since: JDO 2.1

javax.persistence.SequenceGenerator.allocationSize

JPA Annotation Attribute in javax.persistence.SequenceGenerator int allocationSize default 50 (Optional) The amount to increment by when allocating sequence numbers from the sequence . Since: JPA 1.0

javax.persistence.GenerationType

identity column. Since: JPA 1.0 SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence . Since: JPA 1.0 TABLE Indicates that the persistence

javax.persistence.criteria.CriteriaQuery

order. The left-to-right sequence of the ordering expressions determines the precedence

javax.persistence.SequenceGenerator.initialValue

JPA Annotation Attribute in javax.persistence.SequenceGenerator int initialValue default 1 (Optional) The value from which the sequence object is to start generating. Since: JPA 1.0

javax.persistence.SequenceGenerator.schema

JPA Annotation Attribute in javax.persistence.SequenceGenerator String schema default "" (Optional) The schema of the sequence generator. Since: JPA 2.0

javax.persistence.SequenceGenerator.catalog

JPA Annotation Attribute in javax.persistence.SequenceGenerator String catalog default "" (Optional) The catalog of the sequence generator. Since: JPA 2.0

javax.persistence.SequenceGenerator.sequenceName

JPA Annotation Attribute in javax.persistence.SequenceGenerator String sequenceName default "" (Optional) The name of the database sequence object from which to obtain primary key values. Defaults to a provider-chosen value. Since: JPA 1.0

javax.persistence.GeneratedValue

primary keys. Example 1: @Id @GeneratedValue(strategy= SEQUENCE , generator="CUST_SEQ") @Column(name="CUST

CriteriaQuery.orderBy(o) - JPA Method

sequence of the ordering expressions determines the precedence, whereby the leftmost has highest

[ODB1] Chapter 7 - JDOQL Queries

queries by literals. Double quote characters are specified in Java strings using the \" sequence

JDO PersistenceManager.getSequence() returns null sometimes

When using JDO without annotations, database sequences are normally defined in the ORM file. Following discussion on the forum I was told that ObjectDB supports sequences if specified in the JDO ... javax.jdo.datastore. Sequence ; import testcase.Thing; public class Testcase { public static void main

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

would have to switch to TABLE or SEQUENCE strategy instead of AUTO to get an ID ensured after just persist ... /ticket/314) Ok, I've tested objectdb-2.2.5_10 on the larger test sequence of ConfigBean (not just ... relationships corresponding to the test case sequence appear correct, and the once "missing" objects

PersistenceManager.getSequence(name) - JDO Method

JDO Method in javax.jdo.PersistenceManager Sequence getSequence (   String name ) Returns the sequence identified by name . Parameters: name - the name of the Sequence Return: the Sequence Since: JDO 2.0

javax.jdo.PersistenceManager

Since: JDO 1.0 Sequence getSequence (String name) Returns the sequence identified by name . Parameters: name - the name of the Sequence Return: the Sequence Since: JDO 2.0 Date getServerDate

javax.jdo.annotations.DatastoreIdentity

sequence default "" Name of sequence to use when the strategy involves sequences Since: JDO 2.1

javax.jdo.annotations.Persistent

2.1 String sequence default "" Name of the sequence to use with particular value strategies

javax.jdo.annotations.SequenceStrategy

JDO Enum SequenceStrategy java.lang.Object ∟  java.lang.Enum ∟  javax.jdo.annotations.SequenceStrategy Enumeration of the sequence strategy values. Since: JDO 2.1 Enum Constants CONTIGUOUS Since: JDO 2.1 NONCONTIGUOUS Since: JDO 2.1 NONTRANSACTIONAL Since: JDO 2.1 Public Static Enum

javax.jdo.annotations.IdGeneratorStrategy

JDO Enum IdGeneratorStrategy java.lang.Object ∟  java.lang.Enum ∟  javax.jdo.annotations.IdGeneratorStrategy Enumeration of the id generator strategy values. Since: JDO 2.1 Enum Constants IDENTITY Since: JDO 2.1 INCREMENT Since: JDO 2.1 NATIVE Since: JDO 2.1 SEQUENCE Since: JDO 2.1