Home » Search

About Group Id

61-70 of 200Refresh
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
Forum
6

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
6

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
Manual
6

Database Transaction Replayer

contains two types of files: Backup files - with names of the form id>.odb Recording files - with names of the form id>.odr A backup file is an ordinary ObjectDB database file that reflects the state of the database at the end of a specific transaction. The ID
Forum
6

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
6

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
6

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
Manual
6

JPA Metamodel API

: IdentifiableType superType = entityType.getSupertype(); // Checks if the type has a single ID attribute: boolean hasSingleId = entityType.hasSingleIdAttribute(); // Gets a single ID ... ); // Gets a single ID attribute - excluding inherited: SingularAttribute id2