ObjectDB Database Search

1-28 of 28 results

Auto Generated Values

in one or more fields in one or more classes. The @ SequenceGenerator annotation is used to define ... another class: @ SequenceGenerator ( name ="seq", initialValue =1, allocationSize =100) public class ... strategy initialValue=0  has to be specified in the @ SequenceGenerator annotation.

AnnotationRef jakarta.persistence.SequenceGenerators

JPA Annotation SequenceGenerators Target: TYPE, METHOD, FIELD, PACKAGE Implemented Interfaces: Annotation Used to group SequenceGenerator annotations. See Also: SequenceGenerator Since: JPA 2.2 Public Annotation Attributes SequenceGenerator [] value default null Since: JPA 2.2

@SequenceGenerator and single id in whole database

Hi, I have a question about @ SequenceGenerator . I have separate @ SequenceGenerator in each ... classes: By using multiple @ SequenceGenerator and/or @TableGenerator definitions (with different name ... the part about strategy type. Each of my model class got following annotations: @ SequenceGenerator

AnnotationRef jakarta.persistence.SequenceGenerator

JPA Annotation SequenceGenerator Target: TYPE, METHOD, FIELD, PACKAGE Implemented Interfaces ... are determined by the members of the package SequenceGenerator annotation. Example: {@snippet : Since: JPA 1.0 The Auto Generated Values article explains how to use SequenceGenerator . Public Annotation

AnnotationAttrRef jakarta.persistence.SequenceGenerators.value

JPA Annotation Attribute in jakarta.persistence. SequenceGenerators SequenceGenerator [] value default null Since: JPA 2.2

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

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

JPA Annotation Attribute in jakarta.persistence. SequenceGenerator String name default "" (Optional) A unique generator name that can be referenced by one or more classes to be the generator for primary key values. Defaults to the name of the entity when the annotation occurs on an entity class or primary key attribute. Since: JPA 1.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

Primary key generation problem after changing entity package

@ SequenceGenerator (name = "SEQ_BOARD", allocationSize = 5, initialValue = 1) @GeneratedValue(generator = "SEQ ... initialValue parameter of existing SequenceGenerator - no changes are made. Changing sequenceName don't help. Only when I change SequenceGenerator name new instances are persisted with correct initialValue

AnnotationRef jakarta.persistence.GeneratedValue

: See Also: GenerationType Id TableGenerator SequenceGenerator Since: JPA 1.0 The Auto Generated ... default "" (Optional) The name of the primary key generator to use, as specified by the SequenceGenerator

Date field Index is corrupted due to time change

.Query; import javax.persistence. SequenceGenerator ; import javax.persistence.Temporal; import javax ... ;   @ SequenceGenerator (         name="DateTime_sequence

openejb jpa jaas module

. */ @Cacheable @Entity @ SequenceGenerator ( name = "gen", initialValue = 10000, allocationSize = 50 ... | Settings | File Templates. */ @Cacheable @Entity @ SequenceGenerator (name="seq", initialValue=10000

Wrong data stored in time only fields

.Persistence; import javax.persistence.Query; import javax.persistence. SequenceGenerator ; import javax ... ; @ SequenceGenerator (         name="DateTime_sequence",   

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

more The relevant code from RecordingMetaData: @Entity(name="RecordingMetaData") @ SequenceGenerator (    ... : @Entity(name="RecordingMetaData") @ SequenceGenerator (     name="RecordingMetaData

@OneToMany(fetch = FetchType.LAZY) list is always null

setParents(List parents) { this.parents = parents; } } Entities: @Entity @ SequenceGenerator (name ... = children; } } @Entity @ SequenceGenerator (name = "b", allocationSize = 1) public class Child { @Id

AnnotationAttrRef jakarta.persistence.GeneratedValue.generator

JPA Annotation Attribute in jakarta.persistence.GeneratedValue String generator default "" (Optional) The name of the primary key generator to use, as specified by the SequenceGenerator or TableGenerator annotation which declares the generator. The name defaults to the entity name of the entity in

Immediately retrieve unique id

The beginning of my "Sample" class looks like: @Entity @ SequenceGenerator (name = "sampleSeqGenerator", initialValue = 1, allocationSize = 100) public class Sample implements Serializable { private static final long serialVersionUID = 1L; private String sampleName; @GeneratedValue(strategy

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

there is a problem with my data structure?   Super classes: @MappedSuperclass @ SequenceGenerator (name

First query takes 4+ minutes to complete

(related to the query that we run). @Entity(name="RecordingMetaData") @ SequenceGenerator ( name

Possible issue for default id generator

and 36: @GeneratedValue(strategy=GenerationType.SEQUENCE)//, generator="seq") @Id @ SequenceGenerator

Trouble bug on explorer

") }) @ SequenceGenerator (name="seq", initialValue=10000) @Entity public class User implements Serializable { @Id

Lazy loading does not work - crud takes long

@Table(name = "PROJECT") @ SequenceGenerator (name = "PROJECT_SEQUENCE", sequenceName = "PROJECT

Null enums and IS (NOT) NULL: NullPointerException

(Thread.java:744) ]] #{e.id} Entity: @Entity @ SequenceGenerator (name = "asd", allocationSize = 1) public