ObjectDB ObjectDB

Internal Website Search

91-100 of 200 resultsRefresh
7

General Performance Issues Illustrated with a Specific Method

(cascade = CascadeType.ALL,fetch = FetchType.EAGER) private Person person; @Index
7

Need help to make this test work and define proper annotations for entities Lists

order.name: customer name result.order.name: null lo Hoel Cascading of the persist operation from ... Serializable {         ...         @ManyToOne(cascade=CascadeType.PERSIST)         public CustomerDat
7

Is it possible to remove parent/child entities without refresh?

  private long id;   @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, mappedBy ... {   @Id   @GeneratedValue   private long id;   @ManyToOne(fetch = FetchType.LAZY, cascade
7

Merge with Parent/Child entities not possible

= FetchType.LAZY, cascade = CascadeType.ALL, mappedBy = "parent", orphanRemoval = true)   @MapKey ... long id;   @ManyToOne(fetch = FetchType.LAZY, cascade = { CascadeType.PERSIST, CascadeType.MERGE
7

TreeSet and compareTo() issue

to do! Thanks Russ russ0ne Russell Martin Thank you for the test case. Please note that cascading persist should be added to make the test valid:     @OneToMany(fetch = FetchType.EAGER, cascade
7

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @Cascade(org.hibernate.annotations.CascadeType
7

Persisting collection where members are subclasses

been persisted. You have to persist every entity object explicitly unless cascading persist ... ;         @OneToMany(cascade=CascadeType.PERSIST)         private Map<String,Entry> children = new HashMap
7

EM.find() is suddenly slower

= FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element; @OneToMany (fetch = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH
1

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

(Long id) { this.id = id; } @OneToMany(cascade={CascadeType.MERGE ... ;         @OneToMany(cascade={CascadeType.MERGE, CascadeType.PERSIST},             mappedBy="account", fetch
1

ArrayIndexOutOfBoundException

are also entities without no reference to another entity. These entities are not persist in cascade ... .EAGER) annotation. I am not sure wheather this annotation is allowed when not cascade persist

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