ObjectDB Database Search
1-50 of 63 resultsAuto 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 | |
EnumConstRef jakarta.persistence.GenerationType.SEQUENCE JPA Enum Constant in jakarta.persistence.GenerationType SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence . May be used to generate primary keys of type Long, Integer, long , or int . 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 | |
AnnotationRef jakarta.persistence.SequenceGenerator is specified for the GeneratedValue annotation. A sequence generator may be specified on the entity class ... annotation of any program element in the annotated package has strategy= SEQUENCE and a defaulted plain ... Attributes int allocationSize default 50 (Optional) The amount to increment by when allocating sequence | |
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 | |
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 ",   | |
Lazy loading does not work - crud takes long @Table(name = "PROJECT") @SequenceGenerator(name = "PROJECT_ SEQUENCE ", sequenceName = "PROJECT_ SEQUENCE ", allocationSize = 1, initialValue = 0) @SuppressWarnings({"PersistenceUnitPresent ... ; @GeneratedValue(strategy = GenerationType. SEQUENCE , generator = "PROJECT_ SEQUENCE ")   | |
EnumRef jakarta.persistence.GenerationType key of type Long, Integer, long , or int , the provider selects between TABLE , SEQUENCE ... . Since: JPA 1.0 SEQUENCE Indicates that the persistence provider must assign primary keys for the entity using a database sequence . May be used to generate primary keys of type Long, Integer, long , or int | |
Criteria query error: Unexpected query token(strategy = GenerationType.TABLE, generator = " sequences ") // @TableGenerator(name = " sequences ", initialValue = 1, allocationSize = 50) // @GeneratedValue(strategy = GenerationType. SEQUENCE | |
AnnotationAttrRef jakarta.persistence.SequenceGenerator.allocationSize JPA Annotation Attribute in jakarta.persistence.SequenceGenerator int allocationSize default 50 (Optional) The amount to increment by when allocating sequence numbers from the sequence . Since: JPA 1.0 | |
Immediately retrieve unique id = GenerationType. SEQUENCE , generator = "sampleSeqGenerator") @Id long id; The id field is as expected ... Mortimer Cladwell To obtain an automatic id on persist before commit use sequence or table strategy . support Support | |
Populating entity id before transaction commit to finding ID of entity before commit? lwalkowski Lukasz Walkowski You can use a SEQUENCE (or TABLE ... to sequence or table or I will try to force setting id. Thanks. lwalkowski Lukasz Walkowski | |
How the sort order (in queries) works for non english letters? collation sequence . So I wonder if JPA will ever support this. Also, in an RDBMS, you can specify ... , since most international customers probably just use one collation sequence anyhow. Maybe some property | |
Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices keys are sequential and therefore they are stored in sequence pages in the database. New objects ... objects their primary keys are sequential and therefore they are stored in sequence pages in | |
First query takes 4+ minutes to complete="RecordingMetaData_ sequence ", sequenceName="RecordingMetaData_ sequence ", allocationSize=1 ) @Indices | |
@OneToMany(fetch = FetchType.LAZY) list is always null = "b", allocationSize = 1) public class Parent { @Id @GeneratedValue(strategy = GenerationType. SEQUENCE ... @GeneratedValue(strategy = GenerationType. SEQUENCE , generator = "b") private int id; @ManyToOne | |
AnnotationAttrRef jakarta.persistence.SequenceGenerator.initialValue JPA Annotation Attribute in jakarta.persistence.SequenceGenerator int initialValue default 1 (Optional) The value from which the sequence object is to start generating. Since: JPA 1.0 | |
AnnotationAttrRef jakarta.persistence.SequenceGenerator.schema JPA Annotation Attribute in jakarta.persistence.SequenceGenerator String schema default "" (Optional) The schema of the sequence generator. Since: JPA 2.0 | |
AnnotationAttrRef jakarta.persistence.SequenceGenerator.catalog JPA Annotation Attribute in jakarta.persistence.SequenceGenerator String catalog default "" (Optional) The catalog of the sequence generator. Since: JPA 2.0 | |
AnnotationAttrRef jakarta.persistence.SequenceGenerator.sequenceName JPA Annotation Attribute in jakarta.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 | |
AnnotationAttrRef jakarta.persistence.SequenceGenerator.options JPA Annotation Attribute in jakarta.persistence.SequenceGenerator String options default "" (Optional) A SQL fragment appended to the generated DDL statement which creates this sequence . Since: JPA 3.2 | |
CriteriaQuery.orderBy(o) - JPA Method-to-right sequence of the ordering expressions determines the precedence, whereby the leftmost | |
AnnotationRef jakarta.persistence.PrePersist when this callback occurs only for UUID , TABLE , or SEQUENCE primary key generation. For IDENTITY | |
EnumConstRef jakarta.persistence.GenerationType.AUTO int , the provider selects between TABLE , SEQUENCE , and IDENTITY . The AUTO generation strategy | |
InterfaceRef jakarta.persistence.criteria.CriteriaQuery. The left-to-right sequence of the ordering expressions determines the precedence | |
problem with lazy loading - unittest project attached - please consider: a different GeneratedValue 's strategy (in ObjectDB the SEQUENCE   | |
Intermittent: "Attempt to reuse an existing primary key value" when persisting a new instance=GenerationType. SEQUENCE , generator="user_pwd_seq") @SequenceGenerator(name="user_pwd | |
Missing (null) elements in eager loaded references @GeneratedValue (strategy = GenerationType. SEQUENCE , generator = "seq" ) private Long id | |
Optimization Question sequence executes when a track update comes in: - If it’s a new track simply add it to the database | |
DB Doctor sets type to "unknown" for new fields=false I can also confirm that the following sequence of updates works fine: UPDATE | |
openejb jpa jaas module; @GeneratedValue(strategy = GenerationType. SEQUENCE , generator = "gen") @Id private int principalId; public | |
composite index not used in query less useful, unless startDate is last. support Support the sequence of the index members is the key, thanks hgzwicker Hans-Georg Zwicker | |
Backup file always bigger than live db file This makes sense. The database file may have unused space, and if that space contains a long 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 | |
ObjectDB 2.5.0 type. Fixed JDO sequence names to be fully qualified names (issue #1074 ). Fixed accessing a package level JDO sequence using getSequence ( issue #1074 ). Fixed false Doctor warnings when updating | |
com.objectdb.o.InternalException: java.lang.ArrayIndexOutOfBoundsException: null: (except that this may be related to using large number of entity classes and/or sequences ). Can you post a test that causes ... , and sequences is large. The workaround just increased the threshold but didn't fix the problem in the general | |
combined index not used Support we are a bit lost, where do we find that list/ sequence of query plans ? hgzwicker Hans-Georg | |
JPQL Subqueries (JPA 1.0) The JPQL (Java Persistence Query Language) supports defining subqueries, which are nested queries that are embedded in other queries. Subqueries are currently not supported by ObjectDB, and as a workaround, you can use a sequence of two or more queries, where the results of one query serves as a parameter in the next queries. support Support | |
each 1-2 days objects on some objectdb level lock/block each other Zwicker one more sequence (system not more performing) hgzwicker Hans-Georg Zwicker we increased |