Fast Object Database for Java - with JPA/JDO support

Internal Website Search

91-100 of 169 resultsRefresh

spuriously objectdb objects have null references

>(); ... hgzwicker Hans-Georg Zwicker When an entity object is detached (e.g. when the EntityManager is closed), ObjectDB replaces lazy loaded collections that have not been loaded with null values. Detached ... is to make sure that unloaded fields are known as unloaded after detachment. This way you can easily tell

Best practise loading big data

). But this does not sound like a nice solution. We tried to detach the MyValue object before returning ... touched two of the entity classes so I had a mix of attached and detached classes. Sorry ... manager factory. Still all memory in use. Entities have detached trackers (Capture 6

Optimistic locking: prevent version increment on entity collection attribute

is detached between the calls, check this issue and the no-detach solution. > I have tried to clear ... . Actually clear detaches managed objects and could make things harder in this case. > I have tried to add ... that transaction could be detached when I try to access the collection with the same EntityManager in the same

@OneToMany(fetch = FetchType.LAZY) list is always null

only when the EntityManager is open. After closing the EntityManager your entity objects are detached ... , I'll try setting Vladiator Vlad Myachikov Thank you! It works (as ... to the no-detach option then the same test case should work differently, depending if that option

JDOHelper.isDetached failure ?

); TestClass detached = pm.detachCopy(first); System.out.println(JDOHelper.isDetached(detached)); pmf.close(); } With this as the persistent class: @PersistenceCapable(detachable="true") public class TestClass implements Serializable { @PrimaryKey private long

Possible cause for "Enhancement of type ... is old and cannot be used"

the experimental mode ''. It was completely reproducible, and only happened ...' true. When I had '' false, I got the same error that I reported ... however definitely have '' false and I DO still get: "Enhancement of type com

ObjectDB 2.4.0

of criteria queries to use aliases (issue #127). Changed non loaded collections on detachment ... NO DETACH mode. Fixed a bug in online backup of databases larger than 2GB. Fixed a bug in running queries ... entity detachment (feature request #326). Fixed a bug in compilation of path expressions in queries

Tracking changes to new collections (in enhancement mode) after flush

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

Extra uninitialised entities spawned on merge()

.getId();         root = em.find(Element.class, id); //now detached, since outside transaction ... as a detached entity, then create an Example 'e' (with 'root' as owner), persist it, then add it as ... 'root', persist it, load 'root' again with find() outside a transaction as a detached entity

JOD problems regarding detachCopy()

a detached copy 4-closing the connection 5-modifying the detached copy 6-re-opening the connection 7-saving the detached copy I get an "Attempt to reuse an existing primary key value" error. I ... This is an interesting question. A main difference between JPA and JDO regarding merging detached objects

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