ObjectDB ObjectDB

Internal Website Search

151-160 of 200 resultsRefresh
11

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples
2

javax.persistence.ManyToOne

with the dot notation is the name of the respective embedded field or property. Example 1 ... Customer getCustomer() { return customer; } Example 2: @Entity public class Employee
2

javax.persistence.Basic

property, the default values of the Basic annotation will apply. Example 1: @Basic protected String name; Example 2: @Basic(fetch=LAZY) protected String getName() { return name
2

javax.persistence.JoinColumn

itself is defaulted, a single join column is assumed and the default values apply. Example: @ManyToOne @JoinColumn(name="ADDR_ID") public Address getAddress() { return address; } Example
2

javax.persistence.SecondaryTable

of the primary table. Example 1: Single secondary table with a single primary key column. @Entity ... =@PrimaryKeyJoinColumn(name="CUST_ID")) public class Customer { ... } Example 2: Single secondary table
2

javax.persistence.AssociationOverride

must be specified to override the mapping of the join table and/or its join columns. Example 1: Overriding ... public class PartTimeEmployee extends Employee { ... } Example 2: Overriding the mapping
2

javax.persistence.MapKey

. Example 1: @Entity public class Department { ... @OneToMany(mappedBy ... getDepartment() { ... } ... } Example 2: @Entity public class Department
2

javax.persistence.SecondaryTables

javax.persistence Annotation SecondaryTables Target: Classes Specifies multiple secondary tables for an entity. Example 1: Multiple secondary tables assuming primary key columns are named the same in ... { ... } Example 2: Multiple secondary tables with differently named primary key columns. @Entity
0

javax.jdo.Query

declaring an expression (for example, e1 != e2). Rules for constructing valid expressions follow ... with a leading ":". For example, setRange("50, 70"); or setRange(":from, :to"); or setRange("50
0

javax.jdo.spi.JDOImplHelper

a call to the field manager for each key field in the ObjectId. For example, an ObjectId class ... the ObjectId. For example, an ObjectId class that has three key fields (int id, String name

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