ObjectDB ObjectDB

Internal Website Search

41-50 of 139 resultsRefresh

Multi part paths in a composite index must have the same length

final long serialVersionUID = 998L;     @Id @GeneratedValue long id;     @Index private Long ... @GeneratedValue long id;         private Long instrumentId;         private SafeLong tStamp

Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices

@GeneratedValue primary keys are sequential. So when you persist multiple new objects their primary keys ... that long primary keys are more efficient than String UID primary keys. Automatic @GeneratedValue

EntityManager refresh problem

entities; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class SimpleEntity {     @Id @GeneratedValue private Long

Mysterious "Attempt to persist a reference to a non managed instance" error

.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import ... Serializable {     @Id @GeneratedValue private long id;     @OneToOne(fetch=EAGER, cascade

Problem with entities detection

.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import ... { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy

multiple LEFT JOINs do not work as expected

{         @GeneratedValue @Id private long id;         Node parent;         int depth ... static final class Node { @GeneratedValue @Id private long id; Node parent

On ensuring ID available after persist

up to another element) I am using the following for the ID: @Id //@GeneratedValue(strategy = GenerationType.AUTO)// Explicit for EclipseLink + Oracle or MySQL @GeneratedValue//ObjectDB takes as

Join query problem with new statetment

Inspiration extends BaseEntity implements Serializable, Convertable {     @GeneratedValue(strategy ... public class Product extends BaseEntity implements Serializable, Convertable {     @GeneratedValue

EntityManager getMetamodel() causes crash

.GeneratedValue; import javax.persistence.Id; /** * MyEntity */ @Entity public class MyEntity implements ... @GeneratedValue private long id; private String name; MyEntity(String name) { this.name

can't get HashMap out of the database

; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private ... is: @Entity public class GuestHolder { // Persistent Fields: @Id @GeneratedValue

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