ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh

ID format in objectdb 2.x for JDOHelper.getObjectId

db tuotrial. I am just wondering, in objectdb 1.x, when i am tring to get the object id ... .toString() = 3:1 , which is not an integer and this object has two feild object id and type id ... to 2.x. And how can i just get the object id without type id. Thanks, Binit binitbhaskar Binit

EntityManager.find(entityClass, primaryKey) is slow when accessing non-existent IDs

* non-existent IDs. * * Select queries process non-existent IDs fastest. * */ public ... public static class X { @EmbeddedId public XId id; public X() { } public X(XId id) { this.id = id; } public X(int

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results


javax.persistence Annotation Id Target: Fields (including property get methods) Specifies the primary key of an entity. The field or property to which the Id annotation is applied ... : @Id public Long getId() { return id; } Since: JPA 1.0 See Also: Column GeneratedValue Learn

JPA Primary Key

an object database, ObjectDB supports implicit object IDs, so an explicitly defined primary key is not ... key field: @Entity public class Project { @Id @GeneratedValue long id; // still set automatically : } The @Id annotation marks a field as a primary key field. When a primary key field

Auto Generated Values

number generator for every database. This number generator is used to generate automatic object IDs ... @GeneratedValue with the AUTO strategy: @Entity public class EntityWithAutoId1 { @Id @GeneratedValue(strategy=GenerationType.AUTO) long id; : } AUTO is the default strategy, so the following

JDO Predefined ID Classes

An object ID is a combination of a persistence capable class and a primary key. It provides a unique representation of a persistent object. The following classes serve as predefined ID classes for persistence capable classes with a simple single field primary key: Object IDs are used in many


Static Field javax.jdo.Constants String PMF_ATTRIBUTE_SERVER_TIME_ZONE_ID The name of the persistence manager factory element's "server-time-zone-id" attribute. Since: JDO 2.1


Static Field javax.jdo.Constants String PROPERTY_SERVER_TIME_ZONE_ID Mapping "javax.jdo.option.ServerTimeZoneID" Since: JDO 2.1

[ODB1] Chapter 6 - Persistent Objects

and improve efficiency, but they also have some limitations. An embedded object cannot have an object ID ... object). 6.2 Object IDs and Names Identifying database objects by unique IDs and by names is useful ... methods for database objects. The first method, object IDs, is supported by JDO. The second method

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