About Group Id

51-60 of 200Refresh
Forum
6

Wrong @Id type

Hi,  I have noticed some values of id column suddenly switched to int, although it is declared as ... ? Try the last ObjectDB version, which should fix this issue/ To repair IDs that have already changed ... before the fix, with an UPDATE queries that change the IDs to the correct type). We are using ObjectDB
JPA Doc
6

javax.persistence.criteria.AbstractQuery

to the given entity Since: JPA 2.0 List< Expression> getGroupList() Return a list of the grouping expressions. Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Returns: the list of grouping
Forum
6

Change Sequcene Id

could I change sequcence id ? allocating small value may not be effect. or something other ways ... MyEntity is defined with JPA @Entity public class MyEntity {     @Id     @GeneratedValue(strategy=GenerationType.IDENTITY)     private Long id; }   You cannot set the next id of an existing
Forum
6

multi thread application, id field sporadically null

with the field that is declared as @Id having the value null (what is not correct, we checked ... Serializable { private static final long serialVersionUID = 1L; @Id public String nodePath ... you create, persist and retrieve the objects. Except the id field, are other fields initialized correctly
Forum
6

Populating entity id before transaction commit

Hi, I have a question about populating auto generated id before transaction commit. We are using ... transaction is committed so all returned entities are not populated with ID in this context. How can I force ODB to populate entity ID before transaction is committed? Or maybe there is another way
Issue
6

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

to set numeric value of field property com.greensoft.objectdb.test.entity.Element.id using reflection ... of field property com.greensoft.objectdb.test.entity.Element.id using reflection (error 613 ... .test.entity.Element.id using reflection at com.objectdb.o._PersistenceException.b
Forum
6

Immediately retrieve unique id

; @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sampleSeqGenerator") @Id long id;   The id field is as expected when I browse the database: 1,2,3,4 etc. I would like the field sampleName to be: SPL1, SPL2, SPL3 etc. that makes use of the id. How do I capture that id without roundtripping
Forum
6

Uninitialized primary key (id = 0)

the only one record is id=0. What situation will be id=0? TIA This happens if you define an id field ... objects with IDs > 0 that you previously set manually. You may also try a different strategy. For example, if you use a sequence or table - you can set an initial ID which is larger than any existing ID to avoid any conflict. gzdillon
Forum
6

@SequenceGenerator and single id in whole database

of my model enitities, but it looks like id's are generated using only one, shared generator. Is there any ... these generators to @Id fields in different classes. Make sure you set both the strategy and the generator ... ", initialValue = 1000) @GeneratedValue(generator = "XXX") @Id private long id; As I understand default
Forum
6

Create simple index for a Id field

DataItemProvider {         @Id     private Key key = null;     private Value value = null; and I ... ,Value> implements DataItemProvider {        @Id     @Index     private Key key = null ... haven't found ouy why. Thanks in advance. Greatings As far as I know, the @Id is indexed by default