ObjectDB ObjectDB

Internal Website Search

91-100 of 168 resultsRefresh

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 objectdb.temp.no-detach. 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

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

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

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

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

Is there any restriction when using fetch=FetchType.LAZY ?

.detach(this); Regards, -- eko eko EKO FAJAR You can use FetchType.LAZY on any field (although it is only a hint in JPA and ObjectDB is allowed to ignore it and load data eagerly). On detach some ... been loaded yet, as detached objects cannot handle automatic loading on access. See this thread and the objectdb.temp.no-detach mode. support Support

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

Puzzler: Not getting cascades on read from Spring context

dhosek Don Hosek Fetching doesn't work by default for detached objects. Please read see this issue and as a workaround you may try setting objectdb.temp.no-detach. support Support Would it make sense ... Hosek It would be better and more efficient, if possible, to arrange fetching of the relevant data before detachment. support Support

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

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

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