ObjectDB ObjectDB

Internal Website Search

31-40 of 200 resultsRefresh
91

Fetching Collections Puzzle

If I dont declare explicitly the fetch strategy for "children" as FetchType.Eager, then how can I ... elements in the db) By default JPA spec says that colletions are to be lazy fetched. You can try this in a query. "select n from Node n left outer join fetch n.children
91

Query with FETCH JOIN returns multiple results instead of one.

jpqlResult = em.createQuery( "SELECT d FROM Demand d JOIN FETCH d.services WHERE d=:demand ... and fetch its services. Demand object is identified and found correctly, but as it is associated ... should return only one result, with fetched service sub-elements, shouldn't it? I am almost sure
90

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I ... { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List<A> aClasses; } Now, I want to fetch all B classes with all A classes skipping lazy loading: select b from B b join fetch b
89

Mapped By Fetch is very Slow

, go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. So my performance issue ... ) {    System.out.println("FAILED TO FETCH !");   } } Regards, Xirt xirt Sylvain Thank ... , When you fetch 10 000 entities of MyEntityParent, you already have the link to children. Why ObjectDb
89

Eager Fetch is not stable for collection or map types?

types is not stable, we lost them sometimes after JVM restarted. Eager fetch is properly set ... and fetch is: @Entity public class Game {     .......     @ElementCollection(fetch=FetchType.EAGER ... _fetch] ["+g.getMembers().size()+"]"); return g; } } finally { em.close
89

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

Hi, I came across a weird behavior when using fetch=FetchType.LAZY in a complex code. However I ... object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) private LinkedList<OdbObject> referencedObj; My test suite is running well. 2. However when I change fetch to LAZY
89

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

Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related ... ") private int id; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List ... and setters } public class Parent { // ...id @OneToOne(fetch = FetchType.LAZY, cascade
17

Fetch a whole entity graph eager

eager fetch. JOIN FETCH queries. JDO fetch groups. support Support Hello
1

javax.jdo.JDOEntityManager

. The flags for detachment (DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching for the graph of instances reachable from the pc parameter. The state ... _FIELDS) and the active fetch groups determine the scope of fetching for the graph of instances
1

javax.jdo.PersistenceManager

(DETACH_LOAD_FIELDS and DETACH_UNLOAD_FIELDS) and the active fetch groups determine the scope of fetching for the graph of instances reachable from the pc parameter. The state of fields in ... fetch groups determine the scope of fetching for the graph of instances reachable from the pcs

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