Fast Object Database for Java - with JPA/JDO support

Internal Website Search

61-70 of 200 resultsRefresh
8

Defining a JPA Entity Class

you might have noticed that the Point entity class has no primary key (@Id) field. As an object database, ObjectDB supports implicit object IDs, so an explicitly defined primary key is not required. On the other hand
8

Step 6: Set the Spring XML

/> id="emf" class= "org.springframework.orm.jpa ... > id="myTxManager" class="org.springframework
8

JPA Web App Tutorial - Maven Project

project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.
8

Chapter 1 - Quick Tour

your IDE refer to one of the following tutorials: Getting Started with JPA and Eclipse Tutorial Getting ... on how to start using JPA in your IDE with the ObjectDB object database. Given the simplicity of ObjectDB, that should be quick and easy even for a novice.
8

Getting Started with JPA - Maven Project

will download the ObjectDB jar automatically. You may also open and run the Maven project in your IDE: NetBeans IDE and IntelliJ IDEA have built in Maven support.
8

Step 6: Set the Spring XML

/> id="emf" class= "org.springframework.orm.jpa ... > id="myTxManager" class="org
8

Shared (L2) Entity Cache

is cached: boolean isCached = cache.contains(MyEntity.class, Long.valueOf(id)); Cached entity objects ... the shared cache: cache.evict(MyEntity.class, Long.valueOf(id)); // Remove
6

javax.persistence.TableGenerator

{ ... @TableGenerator( name="empGen", table="ID_GEN ... _ID", allocationSize=1) @Id @GeneratedValue(strategy=TABLE, generator="empGen") int id; ... } Example 2: @Entity public class Address
6

Persist error @ManyToMany how to define correct entities relationships

Category but they are all refering to same limited set of Category entities (via ID). There is not changes made to Category from Product. The category ID is taken from the webservice Object ID (unique too). @Entity public class Product implements Serializable { @Id @GeneratedValue
6

javax.jdo.spi.PersistenceCapable

. For example, an ObjectId class that has three key fields (int id, String name, and Float salary ... ) { EmployeeKey oid = (EmployeeKey)objectId; fm.storeIntField (0, oid.id); fm.storeStringField (1, oid ... jdoCopyKeyFieldsToObjectId(Object oid) Copy fields from this PersistenceCapable instance to the Object Id

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