ObjectDB Database Search
1-13 of 13 resultsAuto Generated Values and then using it in one or more fields. Use the @ SequenceGenerator annotation to define a sequence ... sequence: @Entity // Define a sequence - might also be in another class: @ SequenceGenerator ( name | |
jakarta.persistence.GeneratedValue TableGenerator SequenceGenerator Since: Jakarta Persistence (JPA) 1.0 The Auto Generated Values ... ) The name of the primary key generator to use, as specified by the SequenceGenerator or TableGenerator | |
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 | |
jakarta.persistence.GeneratedValue.generator Jakarta Persistence (JPA) Method in jakarta.persistence.GeneratedValue String generator (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 | |
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 | |
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 |