ObjectDB ObjectDB

Internal Website Search

21-30 of 200 resultsRefresh
112

Uninitialized primary key (id = 0)

the only one record is id=0. What situation will be id=0? TIA gzdillon Lai Yang This happens if you define an id field ... should solve the problem, unless you already have entity objects with IDs > 0 that you previously set ... - you can set an initial ID which is larger than any existing ID to avoid any conflict. support Support
111

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
111

Create simple index for a Id field

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

@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 ... values), and attaching these generators to @Id fields in different classes. Make sure you set ... (name = "XXX", sequenceName = "Seq_XXX", initialValue = 1000) @GeneratedValue(generator = "XXX") @Id
111

Newbie : How to return the auto-generated ID

ID when I persist a new entity (with @Id @GeneratedValue annotations applied). I am following ... The id is available in the id field so you can simply access it. By default, however, the allocated value is available only after commit or flush and not after persist. If you need to have the id
110

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
109

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
22

Logical "or" works not correcly when field is @Id and first position

only, if the field for the "or" is the first one defined as @Id. public class OrTest {     @Entity     static ... ;         }         @Id         String a;         @Id         String b;         public Data ... ());     } } This outputs instead of 2 only: 1 If you change the order: @Id
21

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
3

Step 1: Create a Maven Web Project

a filter, select maven-archetype-webapp in the artifact list and click Next. Enter Group Id (e.g. Guestbook), Artifact Id (e.g. Guestbook), Version (e.g. 1.0) and Package (guest), and click Finish ... > </properties> <repositories> <repository> <id>objectdb</id> <name>ObjectDB Repository

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support