About Group Id

51-60 of 200Refresh
Issue
8

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
8

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
8

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
8

@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
8

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
Forum
8

Newbie : How to return the auto-generated ID

ID when I persist a new entity (with @Id @GeneratedValue annotations applied). I am following the following link : http://www.objectdb.com/tutorial/jpa/eclipse/web/entity Thanks. The id is available in the id field so you can simply access it. By default, however, the allocated value is available
Forum
8

World database - Changing country ID

world DB in ObjectDB Explorer - and couldn't find my country, as it has invalid id ( ez instead of cz ). I changed the id of country to "cz". But when I try to find the country: SELECT c FROM Country c WHERE id = "cz" no results are returned. If i find it by name, I can see ID has changed to cz
Forum
8

Explorer shows Long id, but should be Integer

Hi! I have seen a strange behavior of ObjectDB Explorer: it shows @Id as being Long, not Integer as ... used for one project. If I open one of the entities in the explorer, then I click on it's id (in the sample on parts of the Embedded id) as if I would want to edit, then I press enter and ObjectDB
Forum
8

Possible issue for default id generator

First all, congratulations to Objectdb team for the excellent work. Possible issue for default id generator when strategy is sequence. Error: Incomplete definition of auto value in field MyTestCase ... and 36: @GeneratedValue(strategy=GenerationType.SEQUENCE)//, generator="seq") @Id
Issue
8

Page #9 entry 0 (key 'bjjl') has 75 extra bytes / Unexpected last index ID: -119 (expected -116)

Please check the attached database file. When running the Doctor, I get   Global Value Errors ------------------- [1] Unexpected last index ID: -119 (expected -116) Page Content Errors ------------------- [1] Page #9 entry 0 has unexpected object format [2] Page #9 entry 0 (key 'bjjl') has 75 extra